summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-12-19 18:58:55 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-12-19 18:58:55 +0000
commita1f8571e849eb935f27f61087a22d0295b079463 (patch)
tree7dbedc4575552904c6bd2c4e51bd141af6159018 /clang/test/SemaObjC
parent42845efb2dca35892062ce5f0141eea235f494db (diff)
downloadbcm5719-llvm-a1f8571e849eb935f27f61087a22d0295b079463.tar.gz
bcm5719-llvm-a1f8571e849eb935f27f61087a22d0295b079463.zip
objective-C: Don't 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. // rdar://12568064 llvm-svn: 170573
Diffstat (limited to 'clang/test/SemaObjC')
-rw-r--r--clang/test/SemaObjC/property-category-impl.m29
1 files changed, 29 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/property-category-impl.m b/clang/test/SemaObjC/property-category-impl.m
index 9524c22799d..be42deaf909 100644
--- a/clang/test/SemaObjC/property-category-impl.m
+++ b/clang/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
OpenPOWER on IntegriCloud