diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Parser/objc-class-property.m | 1 | ||||
-rw-r--r-- | clang/test/SemaObjC/objc-class-property.m | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/clang/test/Parser/objc-class-property.m b/clang/test/Parser/objc-class-property.m index 202352c33b7..e4c3b0766b4 100644 --- a/clang/test/Parser/objc-class-property.m +++ b/clang/test/Parser/objc-class-property.m @@ -15,7 +15,6 @@ @property int z; @property(readonly) int ro, ro2; @property (class) int c; -@property (class) int c2; @end @implementation A diff --git a/clang/test/SemaObjC/objc-class-property.m b/clang/test/SemaObjC/objc-class-property.m index 37a8178ceb6..5e1b866cbc8 100644 --- a/clang/test/SemaObjC/objc-class-property.m +++ b/clang/test/SemaObjC/objc-class-property.m @@ -18,11 +18,13 @@ @property int z; @property(readonly) int ro, ro2; @property (class) int c; -@property (class) int c2; +@property (class) int c2; // expected-note {{property declared here}} \ + // expected-note {{property declared here}} @property (class) int x; @end -@implementation A +@implementation A // expected-warning {{class property 'c2' requires method 'c2' to be defined}} \ + // expected-warning {{class property 'c2' requires method 'setC2:' to be defined}} @dynamic x; // refers to the instance property @dynamic (class) x; // refers to the class property @synthesize z, c2; // expected-error {{@synthesize not allowed on a class property 'c2'}} |