gcc/testsuite/gcc.dg/tree-prof/ic-misattribution-1.c
raw| 1 | /* { dg-options "-O2 -fdump-ipa-profile-note" } */ |
| 2 | /* { dg-additional-sources "ic-misattribution-1a.c" } */ |
| 3 | |
| 4 | extern void other_caller (void); |
| 5 | |
| 6 | void |
| 7 | callee (void) |
| 8 | { |
| 9 | return; |
| 10 | } |
| 11 | |
| 12 | void |
| 13 | caller(void (*func) (void)) |
| 14 | { |
| 15 | func (); |
| 16 | } |
| 17 | |
| 18 | /* { dg-final-use-not-autofdo { scan-ipa-dump "hist->count 1 hist->all 1" "profile" } } */ |