aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr64513.c
blob: 023649609995cfac0907b64adee3a02f343bdf1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR target/64513 */
/* { dg-do compile } */
/* { dg-options "-O2 -mstack-arg-probe" } */

struct A {};
struct B { struct A y; };
int foo (struct A);

int
bar (int x)
{
  struct B b;
  int c;
  while (x--)
    c = foo (b.y);
  return c;
}