[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / Wc90-c99-compat-5.c
blobf41e960d87724c6e44605f631b80ddc3e2af6aa7
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu90 -pedantic-errors -Wno-c90-c99-compat" } */
4 _Bool b;
5 _Complex double c = __builtin_complex (0.0, 0.0);
6 long long l;
7 struct A { int i; char a[]; };
8 struct { long int b: 2; } s;
9 const const int i;
10 volatile volatile int v;
12 struct S { int a[2]; };
13 extern struct S foo (void);
15 enum { E, };
17 void fn1 (char [*]);
19 void
20 fn2 (char x[static 4])
22 int i = (int) { 1 };
23 struct A a = { .i = 3 };
26 void
27 fn3 (int n)
29 n = 3;
30 int i;
33 void
34 fn4 (int n)
36 n = 3;
37 __extension__ int i;
40 void
41 fn5 (void)
43 (foo ()).a[0];
46 #define F(a) a
48 void
49 fn6 (void)
51 F();
54 void fn7 (int n, int a[n]);