summaryrefslogtreecommitdiffstats
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
commit88f2300d19d63a0b41ecddf5d8f45a0bf7565b42 (patch)
tree2873a685f19eaf7848ab8c3b9de1f21b3ac6b451
parentb296942f6d151225353a672bb235a599e14de2cc (diff)
downloadbcm5719-llvm-88f2300d19d63a0b41ecddf5d8f45a0bf7565b42.tar.gz
bcm5719-llvm-88f2300d19d63a0b41ecddf5d8f45a0bf7565b42.zip
Add a test case demonstrating a situation where we get protocol type checking
right for multiple anonymous categories. llvm-svn: 83085
-rw-r--r--clang/test/SemaObjC/category-1.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/category-1.m b/clang/test/SemaObjC/category-1.m
index 077a49d2b73..dcbda42cd13 100644
--- a/clang/test/SemaObjC/category-1.m
+++ b/clang/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
OpenPOWER on IntegriCloud