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