blob: a5aeffb17da5ccb51f5d73f933c9cf13ce3dd89f (
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 --param=lipo-sampling-period=1" } */
extern void callee (void);
extern void caller (void (*func) (void));
typedef void (*func_t) (void);
func_t func;
int
main ()
{
func = callee;
caller (callee);
func ();
return 0;
}
/* { dg-final-use { scan-ipa-dump-times "Indirect call -> direct call" 2 "profile" } } */
/* { dg-final-use { cleanup-ipa-dump "profile" } } */
|