PR c++/65046
[official-gcc.git] / gcc / testsuite / objc.dg / bad-receiver-type.m
blob8ab296257db8d41317e50836d7fece9d43f634d4
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-error "cannot convert to a pointer type" "" { target *-*-* } 13 } */