1 /* PR middle-end/92333 - missing variable name referencing VLA in warnings
2 PR middle-end/82608 - missing -Warray-bounds on an out-of-bounds VLA index
4 { dg-options "-O2 -Wall -fno-tree-vectorize" } */
8 void test_struct_char_vla_location (void)
13 char cvla
[nelts
]; // { dg-message "declared here|while referencing" }
17 s
.cvla
[nelts
- 1] = 0;
18 s
.cvla
[nelts
] = 0; // { dg-warning "\\\[-Warray-bounds" }