gcc/testsuite/gcc.dg/lto/20091209-1_0.c
raw| 1 | /* Stream an indirect edge in and out. */ |
| 2 | |
| 3 | /* { dg-lto-do link } */ |
| 4 | /* { dg-lto-options {{ -O3 -fno-early-inlining -flto }} } */ |
| 5 | |
| 6 | volatile int something; |
| 7 | |
| 8 | static void hooray () |
| 9 | { |
| 10 | something = 1; |
| 11 | } |
| 12 | |
| 13 | static void hiphip (void (*f)()) |
| 14 | { |
| 15 | something = 2; |
| 16 | f (); |
| 17 | } |
| 18 | |
| 19 | int main (int argc, int *argv[]) |
| 20 | { |
| 21 | hiphip (hooray); |
| 22 | return 0; |
| 23 | } |