* gcc.dg/const-elim-1.c: Remove xfail for xtensa-*-*.
[official-gcc.git] / gcc / testsuite / gcc.dg / vla-init-4.c
blob0f0e332377dd261c6c9cce6a1f86834d878b9b3e
1 /* Test for ICE on VLA compound literal. */
2 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
6 const int i = 1;
7 void foo() { char *p = (char [i]){ "" }; } /* { dg-error "error: compound literal has variable size" } */