clang-1/test/SemaObjC/duplicate-property-class-ex...

14 строки
312 B
Mathematica
Исходник Обычный вид История

// RUN: %clang_cc1 -fsyntax-only -verify %s
@interface Foo
@property (readonly) char foo;
@end
@interface Foo ()
@property (readwrite) char foo; // expected-note {{property declared here}}
@end
@interface Foo ()
@property (readwrite) char foo; // expected-error {{property has a previous declaration}}
@end