blob: e1913be0e36a19b0f1536cd8c9fe732c96b76b9e [file] [log] [blame]
Fariborz Jahanianae6f6fd2008-12-05 22:32:48 +00001// RUN: clang -fsyntax-only -verify %s
2
3@interface I {
4 int Y;
5}
6@property int X;
7@property int Y;
8@property int Z;
9@end
10
11@implementation I
12@dynamic X; // expected-note {{previous declaration is here}}
13@dynamic X; // expected-error {{property 'X' is already implemented}}
14@synthesize Y; // expected-note {{previous use is here}}
15@synthesize Z=Y; // expected-error {{synthesized properties 'Z' and 'Y' both claim ivar 'Y'}}
16@end