2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / Wc90-c99-compat-4.c
blob97ee84c1dc129c88005233f45a7cb14af6edae2b
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu90 -Wpedantic -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]);