aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/obj-c++.dg/bad-receiver-type.mm
blob: 1d6699f99c5846a1a6d60bd9b5edd2fc3b7d93c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile } 
// { dg-options "" }

@interface A

- (void)test; 

@end

extern int foo();

void baz()
{
    [foo test];	/* { dg-warning "invalid receiver type" } */
}