jit: Fix Darwin bootstrap after r15-1699.
[official-gcc.git] / gcc / testsuite / gcc.dg / decl-9.c
blob9bb15609d836ab5eac491468102c96d49545580f
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu89 -pedantic-errors" } */
4 w *x; /* { dg-error "unknown type name 'w'" } */
6 int z; /* { dg-message "previous declaration of 'z'" } */
7 y /* { dg-error "unknown type name 'y'" } */
8 * z; /* { dg-error "conflicting " } */
10 int f1()
12 int d, e;
13 d * e; /* { dg-bogus "unknown type name 'd'" } */
14 g * h; /* { dg-error "unknown type name 'g'" } */
15 /* { dg-error "mixed declarations" "" { target *-*-* } .-1 } */
16 g i; /* { dg-error "unknown type name 'g'" } */
19 typedef int a;
21 int f2()
23 b: a: ; /* { dg-bogus "a label can only be part of a statement" } */
24 c: d e; /* { dg-error "a label can only be part of a statement" } */
25 /* { dg-error "unknown type name 'd'" "unknown type name" { target *-*-* } .-1 } */
29 void *f3()
31 return x; /* { dg-bogus "'x' undeclared" } */