summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr49866.c
blob: 823305df706cc627b0405a0c1d814521b4885143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR target/49866 */
/* { dg-do assemble } */
/* { dg-options "-O2 -mcmodel=large" { target lp64 } } */

void fn (void *, int, int);
int fn2 (void);
void baz (int);

static void
foo (void *x, int y)
{
  int i;
  for (i = 0; i < y; i++)
    fn (x, fn2 (), i);
}

void
bar (int u, int v, int w, void *x)
{
  baz (u);
  foo (x, w);
  baz (u);
}