1 /* Similar to c99-flex-array-3.c, but a system header so should not
2 have diagnostics even with -pedantic-errors. */
4 #pragma GCC system_header
6 struct flex { int a; int b[]; };
7 union rf1 { struct flex a; int b; };
8 union rf2 { int a; struct flex b; };
9 union rf3 { int a; union rf1 b; };
10 union rf4 { union rf2 a; int b; };
12 struct t0 { struct flex a; };
13 struct t1 { union rf1 a; };
14 struct t2 { union rf2 a; };
15 struct t3 { union rf3 a; };
16 struct t4 { union rf4 a; };
18 void f0 (struct flex[]);
19 void f1 (union rf1[]);
20 void f2 (union rf2[]);
21 void f3 (union rf3[]);
22 void f4 (union rf4[]);