aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-prof/ic-misattribution-1.c
blob: e9f3a418dca9ad2c64aae7f641fb67609a824cfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-options "-O2 -fdump-ipa-profile" } */
/* { dg-additional-sources "ic-misattribution-1a.c" } */

extern void other_caller (void);

void
callee (void)
{
  return;
}

void
caller(void (*func) (void))
{
  func ();
}

/* { dg-final-use { scan-ipa-dump "hist->count 1 hist->all 1" "profile" } } */
/* { dg-final-use { cleanup-ipa-dump "profile" } } */