aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/modref-1_0.c
blob: 8fcb9ec52f1e51521e9fb7054c7988716a3f1f4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-lto-do run } */
/* { dg-lto-options {"-O2 -flto-partition=max -flto"}  } */
extern void recursive (int *a, int *b, int *c, int level);
int
main()
{
  int x = 123, y=124, z=125;
  recursive (&x,&y,&z,1);
  if (y)
    __builtin_abort ();
  if (!__builtin_constant_p (z))
    __builtin_abort ();
  return 0;
}