hanchenye-llvm-project/clang/test/SemaObjC/duplicate-property-class-ex...

14 lines
312 B
Mathematica
Raw Normal View History

// 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