summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/objc-class-property.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/objc-class-property.m')
-rw-r--r--clang/test/SemaObjC/objc-class-property.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/objc-class-property.m b/clang/test/SemaObjC/objc-class-property.m
index 449f106964b..77754400905 100644
--- a/clang/test/SemaObjC/objc-class-property.m
+++ b/clang/test/SemaObjC/objc-class-property.m
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
-// expected-no-diagnostics
@interface Root
-(id) alloc;
@@ -22,7 +21,7 @@
@implementation A
@dynamic x; // refers to the instance property
@dynamic (class) x; // refers to the class property
-@synthesize z;
+@synthesize z, c2; // expected-error {{@synthesize not allowed on a class property 'c2'}}
@dynamic c; // refers to the class property
@end
OpenPOWER on IntegriCloud