diff options
Diffstat (limited to 'clang/test/SemaObjC/no-warn-synth-protocol-meth.m')
-rw-r--r-- | clang/test/SemaObjC/no-warn-synth-protocol-meth.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/no-warn-synth-protocol-meth.m b/clang/test/SemaObjC/no-warn-synth-protocol-meth.m new file mode 100644 index 0000000..103f6bb --- /dev/null +++ b/clang/test/SemaObjC/no-warn-synth-protocol-meth.m @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s + +@protocol CYCdef +- (int)name; +@end + +@interface JSCdef <CYCdef> { + int name; +} + +@property (assign) int name; +@end + +@implementation JSCdef +@synthesize name; +@end + |