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 | ||||
John McCall | d520253 | 2009-09-25 02:18:37 +0000 | [diff] [blame] | 3 | |
4 | // rdar://7252252 | ||||
5 | @interface Loop { | ||||
6 | @public | ||||
7 | __weak Loop *_loop; | ||||
8 | } | ||||
9 | @end | ||||
10 | |||||
11 | @implementation Loop @end | ||||
12 | |||||
13 | void loop(Loop *L) { | ||||
14 | L->_loop = 0; | ||||
15 | } |