[cfe-commits] r83085 - /cfe/trunk/test/SemaObjC/category-1.m

Daniel Dunbar daniel at zuster.org
Tue Sep 29 11:51:44 PDT 2009


Author: ddunbar
Date: Tue Sep 29 13:51:43 2009
New Revision: 83085

URL: http://llvm.org/viewvc/llvm-project?rev=83085&view=rev
Log:
Add a test case demonstrating a situation where we get protocol type checking
right for multiple anonymous categories.

Modified:
    cfe/trunk/test/SemaObjC/category-1.m

Modified: cfe/trunk/test/SemaObjC/category-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/category-1.m?rev=83085&r1=83084&r2=83085&view=diff

==============================================================================
--- cfe/trunk/test/SemaObjC/category-1.m (original)
+++ cfe/trunk/test/SemaObjC/category-1.m Tue Sep 29 13:51:43 2009
@@ -58,3 +58,18 @@
 
 @implementation XCRemoteComputerManager(x) // expected-error {{reimplementation of category 'x' for class 'XCRemoteComputerManager'}}
 @end
+
+// <rdar://problem/7249233>
+
+ at protocol MultipleCat_P
+-(void) im0;
+ at end
+
+ at interface MultipleCat_I @end
+
+ at interface MultipleCat_I()  @end
+
+ at interface MultipleCat_I() <MultipleCat_P>  @end
+
+ at implementation MultipleCat_I // expected-warning {{incomplete implementation}}, expected-warning {{method definition for 'im0' not found}}
+ at end





More information about the cfe-commits mailing list