340baef7 JM |
1 | /* Test for designated initializers: invalid uses of string constants |
2 | should not ICE. PR 42262. */ |
3 | /* { dg-do compile } */ |
4 | /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ |
5 | |
6 | int a[] = { [0 ... 1] = "", [0] = "" }; /* { dg-error "initial" } */ |