Move the c-torture/noncompile tests to either gcc.dg/cpp or a new
[official-gcc.git] / gcc / testsuite / gcc.dg / noncompile / 930714-1.c
blobbdbc13394b3cd0671ba6acd9347b93abdcfcd41d
1 typedef union _yystype
3 int i;
4 int *iptr;
5 int (*ifunc)(int);
6 void (*vfunc)(int);
8 YYSTYPE;
10 extern int f1(int k);
12 void test()
14 YYSTYPE a;
15 int (*iptr)(int);
16 int foo[5];
18 a = f1; /* { dg-error "incompatible types" } */
19 a = (YYSTYPE)f1;
20 a = (YYSTYPE)foo;
21 a = (YYSTYPE)(int *)foo;
22 iptr = f1;
23 a = iptr; /* { dg-error "incompatible types" } */
24 a = (YYSTYPE)iptr;