xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/objc2-weak-ivar-debug.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -g -emit-llvm -o - %s
2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -g -emit-llvm -o - %s
3*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -g -emit-llvm -o - %s
4*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c++ -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -g -emit-llvm -o - %s
5*f4a2713aSLionel Sambuc
6*f4a2713aSLionel Sambuc// rdar://7252252
7*f4a2713aSLionel Sambuc@interface Loop {
8*f4a2713aSLionel Sambuc@public
9*f4a2713aSLionel Sambuc  __weak Loop *_loop;
10*f4a2713aSLionel Sambuc}
11*f4a2713aSLionel Sambuc@end
12*f4a2713aSLionel Sambuc
13*f4a2713aSLionel Sambuc@implementation Loop @end
14*f4a2713aSLionel Sambuc
15*f4a2713aSLionel Sambucvoid loop(Loop *L) {
16*f4a2713aSLionel Sambuc  L->_loop = 0;
17*f4a2713aSLionel Sambuc}
18