3 /* { dg-options "-Wunused-variable" } */
4 /* { dg-require-effective-target alloca } */
9 int foo2a(void) // should not ICE
11 return ({ int n
= 20; struct { int x
[n
];} x
; x
.x
[12] = 1; sizeof(x
); });
15 int foo2b(void) // should not ICE
17 return sizeof *({ int n
= 20; struct { int x
[n
];} x
; x
.x
[12] = 1; &x
; });
22 if (sizeof(struct { int x
[20]; }) != foo2a())
25 if (sizeof(struct { int x
[20]; }) != foo2b())