* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr28865.c
blobef0eba5492d38467094bfceb5042d63f32018ec8
1 struct var_len
3 int field1;
4 const char field2[];
5 };
7 /* Note - strictly speaking this array declaration is illegal
8 since each element has a variable length. We used to allow
9 this because it was used in existing code.
10 Since PR64417 we reject this code. */
11 static const struct var_len var_array[] =
13 { 1, "Long exposure noise reduction" }, /* { dg-error "initialization of flexible array member" } */
14 { 2, "Shutter/AE lock buttons" }, /* { dg-error "initialization of flexible array member" } */
15 { 3, "Mirror lockup" } /* { dg-error "initialization of flexible array member" } */