[cfe-commits] r75816 - /cfe/trunk/test/SemaObjC/message.m

Steve Naroff snaroff at apple.com
Wed Jul 15 12:44:24 PDT 2009


Author: snaroff
Date: Wed Jul 15 14:44:23 2009
New Revision: 75816

URL: http://llvm.org/viewvc/llvm-project?rev=75816&view=rev
Log:
Remove cast from test case (cast was incorrectly added as part of http://llvm.org/viewvc/llvm-project?view=rev&revision=75314).

Add new warnings that are being produced.

Modified:
    cfe/trunk/test/SemaObjC/message.m

Modified: cfe/trunk/test/SemaObjC/message.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/message.m?rev=75816&r1=75815&r2=75816&view=diff

==============================================================================
--- cfe/trunk/test/SemaObjC/message.m (original)
+++ cfe/trunk/test/SemaObjC/message.m Wed Jul 15 14:44:23 2009
@@ -95,6 +95,6 @@
 void foo4() {
   struct objc_object X[10];
   
-  [(id)X rect];
+  [X rect]; // expected-warning {{receiver type 'struct objc_object *' is not 'id' or interface pointer, consider casting it to 'id'}} expected-warning {{method '-rect' not found (return type defaults to 'id')}}
 }
 





More information about the cfe-commits mailing list