rt_gccstream/gcc/testsuite/obj-c++.dg/bad-receiver-type.mm

16 lines
175 B
Plaintext

// { dg-do compile }
// { dg-options "" }
@interface A
- (void)test;
@end
extern int foo();
void baz()
{
[foo test]; /* { dg-warning "invalid receiver type" } */
}