diff --git a/clang/test/SemaObjC/category-1.m b/clang/test/SemaObjC/category-1.m index 077a49d2b73e..dcbda42cd136 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 + +// + +@protocol MultipleCat_P +-(void) im0; +@end + +@interface MultipleCat_I @end + +@interface MultipleCat_I() @end + +@interface MultipleCat_I() @end + +@implementation MultipleCat_I // expected-warning {{incomplete implementation}}, expected-warning {{method definition for 'im0' not found}} +@end