]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr68090.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr68090.c
CommitLineData
bfcfbfa0
MP
1/* PR c/68090 */
2/* { dg-do compile } */
3/* { dg-options "" } */
4
5void
6fn (int i)
7{
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" } */
13}