diff options
Diffstat (limited to 'test/SemaObjC/property-category-impl.m')
-rw-r--r-- | test/SemaObjC/property-category-impl.m | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/SemaObjC/property-category-impl.m b/test/SemaObjC/property-category-impl.m index 9524c22..be42dea 100644 --- a/test/SemaObjC/property-category-impl.m +++ b/test/SemaObjC/property-category-impl.m @@ -29,3 +29,32 @@ @implementation MyClass (public)// expected-warning {{property 'foo' requires method 'setFoo:' to be defined }} @end + +// rdar://12568064 +// No warn of unimplemented property of protocols in category, +// when those properties will be implemented in category's primary +// class or one of its super classes. +@interface HBSuperclass +@property (nonatomic) char myProperty; +@property (nonatomic) char myProperty2; +@end + +@interface HBClass : HBSuperclass +@end + +@protocol HBProtocol +@property (nonatomic) char myProperty; +@property (nonatomic) char myProperty2; +@end + +@interface HBSuperclass (HBSCategory)<HBProtocol> +@end + +@implementation HBSuperclass (HBSCategory) +@end + +@interface HBClass (HBCategory)<HBProtocol> +@end + +@implementation HBClass (HBCategory) +@end |