]> granicus.if.org Git - clang/commitdiff
Add a test case demonstrating a situation where we get protocol type checking
authorDaniel Dunbar <daniel@zuster.org>
Tue, 29 Sep 2009 18:51:43 +0000 (18:51 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 29 Sep 2009 18:51:43 +0000 (18:51 +0000)
right for multiple anonymous categories.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83085 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/category-1.m

index 077a49d2b73e2bf1b52de31882b0f8dc3ed9cd88..dcbda42cd13647b1fb5516c6d68f10f0df5c0d09 100644 (file)
 
 @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