1 /* { dg-do compile } */ 2 /* { dg-options "-std=gnu90 -pedantic-errors -Wno-c90-c99-compat" } */ 3 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; 11 12 struct S { int a[2]; }; 13 extern struct S foo (void); 14 15 enum { E, }; 16 17 void fn1 (char [*]); 18 19 void fn2(char x[static4])20fn2 (char x[static 4]) 21 { 22 int i = (int) { 1 }; 23 struct A a = { .i = 3 }; 24 } 25 26 void fn3(int n)27fn3 (int n) 28 { 29 n = 3; 30 int i; 31 } 32 33 void fn4(int n)34fn4 (int n) 35 { 36 n = 3; 37 __extension__ int i; 38 } 39 40 void fn5(void)41fn5 (void) 42 { 43 (foo ()).a[0]; 44 } 45 46 #define F(a) a 47 48 void fn6(void)49fn6 (void) 50 { 51 F(); 52 } 53 54 void fn7 (int n, int a[n]); 55