diff options
Diffstat (limited to 'clang/test/SemaObjC/writable-property-in-superclass.m')
-rw-r--r-- | clang/test/SemaObjC/writable-property-in-superclass.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/writable-property-in-superclass.m b/clang/test/SemaObjC/writable-property-in-superclass.m new file mode 100644 index 0000000..bbd1f16 --- /dev/null +++ b/clang/test/SemaObjC/writable-property-in-superclass.m @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +@interface MessageStore +@property (assign, readonly) int P; +@end + +@interface MessageStore (CAT) +@property (assign) int P; +@end + +@interface NeXTMbox : MessageStore +@end + +@implementation NeXTMbox +- (void) Meth { self.P = 1; } +@end + |