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