diff options
Diffstat (limited to 'clang/test/SemaObjC/unimplemented-protocol-prop.m')
-rw-r--r-- | clang/test/SemaObjC/unimplemented-protocol-prop.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/unimplemented-protocol-prop.m b/clang/test/SemaObjC/unimplemented-protocol-prop.m index 0805202c5e0..fa3ed8ef121 100644 --- a/clang/test/SemaObjC/unimplemented-protocol-prop.m +++ b/clang/test/SemaObjC/unimplemented-protocol-prop.m @@ -19,3 +19,21 @@ // expected-warning {{property 'MyProperty0' requires method 'setMyProperty0:' to be defined}}\ // expected-warning {{property 'MyProperty' requires method 'MyProperty' to be defined}} \ // expected-warning {{property 'MyProperty' requires method 'setMyProperty:' to be defined}} + +// rdar://10120691 +// property is implemented in super class. No warning + +@protocol PROTOCOL1 +@property int MyProp; +@end + +@interface superclass +@property int MyProp; +@end + +@interface childclass : superclass <PROTOCOL1> +@end + +@implementation childclass +@end + |