diff options
| author | Manman Ren <manman.ren@gmail.com> | 2016-01-29 19:16:39 +0000 |
|---|---|---|
| committer | Manman Ren <manman.ren@gmail.com> | 2016-01-29 19:16:39 +0000 |
| commit | dfef4069e3a02b8e1461434971ff0060afa89a4e (patch) | |
| tree | b78b0cd17ef6d100ae9f2e22ef2049a2aca7e212 /clang/test/SemaObjC | |
| parent | 0fe61f868865c4c643cc5576e5ee63f94f382d8a (diff) | |
| download | bcm5719-llvm-dfef4069e3a02b8e1461434971ff0060afa89a4e.tar.gz bcm5719-llvm-dfef4069e3a02b8e1461434971ff0060afa89a4e.zip | |
Class Property: warn for synthesize on a class property.
rdar://23891898
llvm-svn: 259226
Diffstat (limited to 'clang/test/SemaObjC')
| -rw-r--r-- | clang/test/SemaObjC/objc-class-property.m | 3 |
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 |

