aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/protocol-implementing-class-methods.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-08-25 22:58:42 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-08-25 22:58:42 +0000
commit8c7e67d7644c3ab298bd6be724c9480da0979af6 (patch)
treec5b1823a18e4fcf1e88dadad2603f98801d2d913 /test/SemaObjC/protocol-implementing-class-methods.m
parentb5af843a20e237ad1a13ad66a867e200695b8c8e (diff)
Don't warn on category implementing a method, if
declated method in the class belongs to a synthesized property getter/setter. // rdar://10014946 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/protocol-implementing-class-methods.m')
-rw-r--r--test/SemaObjC/protocol-implementing-class-methods.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/SemaObjC/protocol-implementing-class-methods.m b/test/SemaObjC/protocol-implementing-class-methods.m
index 6d68e8c21c..f08a5a97d8 100644
--- a/test/SemaObjC/protocol-implementing-class-methods.m
+++ b/test/SemaObjC/protocol-implementing-class-methods.m
@@ -26,3 +26,16 @@
- (void) : (double) arg{}; // expected-warning {{category is implementing a method which will also be implemented by its primary class}}
- (void) CEMeth {}; // expected-warning {{category is implementing a method which will also be implemented by its primary class}}
@end
+
+// rdar://10014946
+typedef char BOOL;
+@interface I
+{
+ BOOL allowsDeleting;
+}
+@property (nonatomic, assign, readwrite) BOOL allowsDeleting;
+@end
+
+@implementation I(CAT)
+- (BOOL) allowsDeleting { return 1; }
+@end