]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/property-impl-misuse.m
Update clang to r89205.
[FreeBSD/FreeBSD.git] / test / SemaObjC / property-impl-misuse.m
1 // RUN: clang-cc -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