aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.2.1/gcc/testsuite/objc.dg/bad-receiver-type.m
blob: 36f4cf3e433525c6226d8233c209e7d5bdc797b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */

@interface A

- (void)test; 

@end

extern int foo();

void baz()
{
    [foo test];	/* { dg-warning "invalid receiver type" } */ 
		/* { dg-warning "cannot convert to a pointer type" "" { target *-*-* } 13 } */
}