gcc/testsuite/gcc.target/i386/pr84564.c
raw| 1 | /* PR target/84564 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -mforce-indirect-call" } */ |
| 4 | |
| 5 | int a, b, c, d; |
| 6 | int foo (void); |
| 7 | |
| 8 | static int |
| 9 | bar (int x, int y, int z) |
| 10 | { |
| 11 | while (a) |
| 12 | if (foo ()) |
| 13 | bar (x, y, z); |
| 14 | return 0; |
| 15 | } |
| 16 | |
| 17 | int |
| 18 | baz (void) |
| 19 | { |
| 20 | return bar (b, c, d); |
| 21 | } |