Implement C _FloatN, _FloatNx types.
[official-gcc.git] / gcc / testsuite / gcc.dg / decl-9.c
blob83793a9a525f27946f74fc78021e873454a55514
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu89" } */
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 g i; /* { dg-error "unknown type name 'g'" } */
18 typedef int a;
20 int f2()
22 b: a: ; /* { dg-bogus "a label can only be part of a statement" } */
23 c: d e; /* { dg-error "a label can only be part of a statement" } */
24 /* { dg-error "unknown type name 'd'" "unknown type name" { target *-*-* } 23 } */
28 void *f3()
30 return x; /* { dg-bogus "'x' undeclared" } */