зеркало из https://github.com/microsoft/clang-1.git
17 строки
434 B
Objective-C
17 строки
434 B
Objective-C
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
@interface I {
|
|
int Y;
|
|
}
|
|
@property int X;
|
|
@property int Y;
|
|
@property int Z;
|
|
@end
|
|
|
|
@implementation I
|
|
@dynamic X; // expected-note {{previous declaration is here}}
|
|
@dynamic X; // expected-error {{property 'X' is already implemented}}
|
|
@synthesize Y; // expected-note {{previous use is here}}
|
|
@synthesize Z=Y; // expected-error {{synthesized properties 'Z' and 'Y' both claim ivar 'Y'}}
|
|
@end
|