Imported Upstream version 2.9.0
[debian/cc1111] / support / valdiag / tests / structflexiblearray.c
1
2 #ifdef TEST1
3 struct tag {
4   int good1;
5   int flex[];           /* ERROR(GCC) */
6   int good2;
7 } badstruct;            /* ERROR(SDCC) */
8 #endif
9
10 #ifdef TEST2
11 struct tag {
12   int flex[];           /* ERROR(GCC) */
13 } badstruct;            /* ERROR(SDCC) */
14 #endif
15
16 #ifdef TEST3
17 struct tag {
18   int good1;
19   struct tag2 {
20     int good2;
21     int flex[];
22   } nestedstruct;       /* IGNORE(SDCC) */
23 } badstruct;            /* ERROR(SDCC) */
24 #endif