summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-prof/ic-misattribution-1a.c
blob: caa10fec52fd46f6cefadf251b0d0a79889b39ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-options "-DEMPTY" } */
/* This file is only needed in combination with ic-misattribution-1.c
   but there's no easy way to make this file ignored. */
extern void callee (void);
extern void caller (void (*func) (void));

typedef void (*func_t) (void);
func_t func;

int
main ()
{
#ifdef EMPTY
#else
  func = callee;
  caller (callee);
  func ();
#endif
  return 0;
}

/* { dg-final-use { cleanup-ipa-dump "tree_profile_ipa" } } */