aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/c99-init-6.c
blob: 6328f82676ff3505f000c8a6a56acd2fa7b91a70 (plain)
1
2
3
4
5
6
/* Test for designated initializers: invalid uses of string constants
   should not ICE.  PR 42262.  */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */

int a[] = { [0 ... 1] = "", [0] = "" }; /* { dg-error "initial" } */