1/* { dg-do compile } */
2/* { dg-options "-O2" } */
3
4struct A { int a; };
5extern void *y;
6
7__attribute__((optimize (0))) void
8foo (void *p, struct A x)
9{
10  foo (y, x);
11}
12