| 1 |
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -debug-info-kind=limited -emit-llvm -o - %s |
| 2 |
// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -debug-info-kind=limited -emit-llvm -o - %s |
| 3 |
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -debug-info-kind=limited -emit-llvm -o - %s |
| 4 |
// RUN: %clang_cc1 -x objective-c++ -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -debug-info-kind=limited -emit-llvm -o - %s |
| 5 |
|
| 6 |
@interface Loop { |
| 7 |
@public |
| 8 |
__weak Loop *_loop; |
| 9 |
} |
| 10 |
@end |
| 11 |
|
| 12 |
@implementation Loop @end |
| 13 |
|
| 14 |
void loop(Loop *L) { |
| 15 |
L->_loop = 0; |
| 16 |
} |