Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-gc -g -emit-llvm -o - %s |
| 2 | // RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-gc -g -emit-llvm -o - %s |
Fariborz Jahanian | 27b7aa0 | 2010-05-20 18:22:28 +0000 | [diff] [blame] | 3 | // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-gc -g -emit-llvm -o - %s |
| 4 | // RUN: %clang_cc1 -x objective-c++ -triple i386-apple-darwin9 -fobjc-gc -g -emit-llvm -o - %s |
John McCall | d520253 | 2009-09-25 02:18:37 +0000 | [diff] [blame] | 5 | |
| 6 | // rdar://7252252 |
| 7 | @interface Loop { |
| 8 | @public |
| 9 | __weak Loop *_loop; |
| 10 | } |
| 11 | @end |
| 12 | |
| 13 | @implementation Loop @end |
| 14 | |
| 15 | void loop(Loop *L) { |
| 16 | L->_loop = 0; |
| 17 | } |