]> granicus.if.org Git - clang/commitdiff
Remove cast from test case (cast was incorrectly added as part of http://llvm.org...
authorSteve Naroff <snaroff@apple.com>
Wed, 15 Jul 2009 19:44:23 +0000 (19:44 +0000)
committerSteve Naroff <snaroff@apple.com>
Wed, 15 Jul 2009 19:44:23 +0000 (19:44 +0000)
Add new warnings that are being produced.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75816 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/message.m

index f4a85dab6b1ab67e3b77296c413fe1d6b5008f69..02901238f17f836d50cfacf3a2cf8c726b4c001f 100644 (file)
@@ -95,6 +95,6 @@ int test5(int X) {
 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')}}
 }