blob: aa9f4910ac9630a2cc238b59c33d6e4434c04a20 (
plain)
1
2
3
4
5
6
7
|
/* Test for ICE on incomplete-array-of-VLA compound literal. */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-options "" } */
const int i = 1;
void foo() { void *p = (char [][i]){ "" }; } /* { dg-error "compound literal has variable size" } */
|