gcc/testsuite/gcc.dg/tree-prof/ic-misattribution-1a.c
raw| 1 | /* { dg-options "-DEMPTY" } */ |
| 2 | /* This file is only needed in combination with ic-misattribution-1.c |
| 3 | but there's no easy way to make this file ignored. */ |
| 4 | extern void callee (void); |
| 5 | extern void caller (void (*func) (void)); |
| 6 | |
| 7 | typedef void (*func_t) (void); |
| 8 | func_t func; |
| 9 | |
| 10 | int |
| 11 | main () |
| 12 | { |
| 13 | #ifdef EMPTY |
| 14 | #else |
| 15 | func = callee; |
| 16 | caller (callee); |
| 17 | func (); |
| 18 | #endif |
| 19 | return 0; |
| 20 | } |
| 21 |