blob: 97d66937e9a3a85d0d009a50ea37e782fdad1a72 [file] [log] [blame]
/* PR29970*/
/* { dg-do run } */
/* { dg-options "-Wall -O0" } */
int foo(void)
{
int n = 0;
return sizeof(*({ n = 10; struct foo { int x[n]; } x; &x; }));
}
int main()
{
if (sizeof(struct foo { int x[10]; }) != foo())
__builtin_abort();
return 0;
}