2007-03-01 Paul Brook <paul@codesourcery.com>
[official-gcc.git] / gcc / testsuite / objc.dg / bad-receiver-type.m
blob36f4cf3e433525c6226d8233c209e7d5bdc797b6
1 /* { dg-do compile } */
3 @interface A
5 - (void)test; 
7 @end
9 extern int foo();
11 void baz()
13     [foo test]; /* { dg-warning "invalid receiver type" } */ 
14                 /* { dg-warning "cannot convert to a pointer type" "" { target *-*-* } 13 } */