blob: 83262a82a61bb7e7ebc8f3395f59fa5cf2160941 [file] [log] [blame]
John McCalld1e40d52011-10-02 01:16:38 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-fragile-abi -fobjc-gc -g -emit-llvm -o - %s
2// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-fragile-abi -fobjc-gc -g -emit-llvm -o - %s
3// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-fragile-abi -fobjc-gc -g -emit-llvm -o - %s
4// RUN: %clang_cc1 -x objective-c++ -triple i386-apple-darwin9 -fobjc-fragile-abi -fobjc-gc -g -emit-llvm -o - %s
John McCalld5202532009-09-25 02:18:37 +00005
6// rdar://7252252
7@interface Loop {
8@public
9 __weak Loop *_loop;
10}
11@end
12
13@implementation Loop @end
14
15void loop(Loop *L) {
16 L->_loop = 0;
17}