Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / pr68090.c
blob87b3b93ed0352623de617b9d161e3805b1ed69bc
1 /* PR c/68090 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
5 void
6 fn (int i)
8 (int[(0, 1)]) { 0 }; /* { dg-error "compound literal has variable size" } */
9 (int[i]) { 0 }; /* { dg-error "compound literal has variable size" } */
10 (int[(0, i)]) { 0 }; /* { dg-error "compound literal has variable size" } */
11 (int [][i]){ 0 }; /* { dg-error "compound literal has variable size" } */
12 (int [][(1, 2)]){ 0 }; /* { dg-error "compound literal has variable size" } */