From 88f2300d19d63a0b41ecddf5d8f45a0bf7565b42 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 29 Sep 2009 18:51:43 +0000 Subject: [PATCH] Add a test case demonstrating a situation where we get protocol type checking right for multiple anonymous categories. llvm-svn: 83085 --- clang/test/SemaObjC/category-1.m | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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