John McCall | 8f0e8d2 | 2011-06-15 23:25:17 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -x objective-c %s.result |
Argyrios Kyrtzidis | eaed19e | 2011-06-16 00:53:46 +0000 | [diff] [blame] | 2 | // RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -x objective-c %s > %t |
John McCall | 8f0e8d2 | 2011-06-15 23:25:17 +0000 | [diff] [blame] | 3 | // RUN: diff %t %s.result |
| 4 | |
| 5 | #define nil ((void*) 0) |
| 6 | |
| 7 | @interface Foo |
| 8 | @property (retain) id x; |
| 9 | @property (retain) id y; |
| 10 | @property (retain) id w; |
| 11 | @property (retain) id z; |
| 12 | @end |
| 13 | |
| 14 | @implementation Foo |
| 15 | @synthesize x; |
| 16 | @synthesize y; |
| 17 | @synthesize w; |
| 18 | @synthesize z; |
| 19 | |
| 20 | - (void) dealloc { |
| 21 | self.x = 0; |
| 22 | [self setY:nil]; |
| 23 | w = nil; |
| 24 | self.z = nil; |
| 25 | } |
| 26 | @end |