1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
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 instance variable 'Y'}}
19 @interface IDEPathCell
25 @property (readwrite, assign, nonatomic) id gradientStyle;
28 @implementation IDEPathCell
30 @synthesize gradientStyle = _gradientStyle;
31 - (void)setGradientStyle:(id)value { }
33 + (id)_componentCellWithRepresentedObject {
34 return self.gradientStyle;
39 @interface rdar11054153
40 @property int P; // expected-error {{type of property 'P' ('int') does not match type of accessor 'P' ('void')}}
41 - (void)P; // expected-note {{declared here}}
43 @property int P1; // expected-warning {{type of property 'P1' does not match type of accessor 'P1'}}
44 - (double) P1; // expected-note {{declared here}}
46 @property int P2; // expected-error {{type of property 'P2' ('int') does not match type of accessor 'P2' ('double *')}}
47 - (double*)P2; // expected-note {{declared here}}