gcc/testsuite/gcc.dg/lto/pr61786_0.c
raw| 1 | /* { dg-lto-do run } */ |
| 2 | /* { dg-lto-options { { -flto } } } */ |
| 3 | /* { dg-extra-ld-options "-O" } */ |
| 4 | |
| 5 | int a, *c = &a, d; |
| 6 | char b = 1; |
| 7 | |
| 8 | void |
| 9 | fn1 (void) |
| 10 | { |
| 11 | d = 1; |
| 12 | lbl: |
| 13 | if (b == d) |
| 14 | { |
| 15 | d = *c; |
| 16 | if (b) |
| 17 | goto lbl; |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | int |
| 22 | fn2 (void) |
| 23 | { |
| 24 | fn1 (); |
| 25 | return 0; |
| 26 | } |
| 27 |