blob: 2bd683e1b9717063b23623c6d469ee2efa75e8e7 [file] [log] [blame]
/* { dg-do run }
* { dg-options "-std=c99" }
* */
static char tmp[2];
static int f(int n, char (*x)[sizeof *(++n, (struct { char (*x)[n]; }){ &tmp }).x]) /* { dg-warning "anonymous struct" } */
{
return sizeof *x;
}
int main (void)
{
if (2 != f(1, &tmp))
__builtin_abort ();
return 0;
}