diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/noncompile/init-5.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/noncompile/init-5.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/noncompile/init-5.c b/gcc/testsuite/gcc.dg/noncompile/init-5.c new file mode 100644 index 000000000..366397aef --- /dev/null +++ b/gcc/testsuite/gcc.dg/noncompile/init-5.c @@ -0,0 +1,4 @@ +/* Test for ICE after syntax error in initializer with range + designator: PR 35446. */ + +int a[2][2] = { [0 ... 1] = { ; } }; /* { dg-error "expected expression" } */ |