From a1f8571e849eb935f27f61087a22d0295b079463 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 19 Dec 2012 18:58:55 +0000 Subject: 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 --- clang/test/SemaObjC/property-category-impl.m | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'clang/test') 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) +@end + +@implementation HBSuperclass (HBSCategory) +@end + +@interface HBClass (HBCategory) +@end + +@implementation HBClass (HBCategory) +@end -- cgit v1.2.3