summaryrefslogtreecommitdiff
path: root/test/SemaObjC/category-1.m
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-29 18:51:43 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-29 18:51:43 +0000
commita22b6403291662c0e2f9002f115a2a7ead8542e6 (patch)
tree296e83e6f06a9c770d50b46abe148cdeb6f644a3 /test/SemaObjC/category-1.m
parent9091656e423f2354e53b2b3baa95b3eb5510badc (diff)
downloadclang-a22b6403291662c0e2f9002f115a2a7ead8542e6.tar.gz
Add a test case demonstrating a situation where we get protocol type checking
right for multiple anonymous categories. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83085 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/category-1.m')
-rw-r--r--test/SemaObjC/category-1.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/SemaObjC/category-1.m b/test/SemaObjC/category-1.m
index 077a49d2b7..dcbda42cd1 100644
--- a/test/SemaObjC/category-1.m
+++ b/test/SemaObjC/category-1.m
@@ -58,3 +58,18 @@
@implementation XCRemoteComputerManager(x) // expected-error {{reimplementation of category 'x' for class 'XCRemoteComputerManager'}}
@end
+
+// <rdar://problem/7249233>
+
+@protocol MultipleCat_P
+-(void) im0;
+@end
+
+@interface MultipleCat_I @end
+
+@interface MultipleCat_I() @end
+
+@interface MultipleCat_I() <MultipleCat_P> @end
+
+@implementation MultipleCat_I // expected-warning {{incomplete implementation}}, expected-warning {{method definition for 'im0' not found}}
+@end