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