* gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20030305-1.c
blobc8e4072055d1119ce993c9e5d14a71d239ff1846
1 /* PR c/9799 */
2 /* Verify that GCC doesn't crash on excess elements
3 in initializer for a flexible array member. */
5 typedef struct {
6 int aaa;
7 } s1_t;
9 typedef struct {
10 int bbb;
11 s1_t s1_array[];
12 } s2_t;
14 static s2_t s2_array[]= {
15 { 1, 4 }, /* { dg-error "(initialization of flexible array member|near)" } */
16 { 2, 5 }, /* { dg-error "(initialization of flexible array member|near)" } */
17 { 3, 6 } /* { dg-error "(initialization of flexible array member|near)" } */