Add a test case demonstrating a situation where we get protocol type checking

right for multiple anonymous categories.

llvm-svn: 83085
This commit is contained in:
Daniel Dunbar 2009-09-29 18:51:43 +00:00
parent b296942f6d
commit 88f2300d19
1 changed files with 15 additions and 0 deletions

View File

@ -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