gcc/testsuite/gcc.dg/20050325-1.c
raw| 1 | /* PR 20249 */ |
| 2 | |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-O2 -fprofile-arcs" } */ |
| 5 | /* { dg-require-profiling "-fprofile-generate" } */ |
| 6 | |
| 7 | extern int *g (int x, void* y); |
| 8 | extern void fg (long long x, int y); |
| 9 | |
| 10 | static void |
| 11 | ff (int y, long long z) |
| 12 | { |
| 13 | fg (z, 1); |
| 14 | } |
| 15 | |
| 16 | void |
| 17 | f () |
| 18 | { |
| 19 | g (42, ff); |
| 20 | } |