aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr114115.c
blob: 5e3ef5793cde6a6202628f364da81c114db02571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-do compile } */
/* { dg-options "-O0 -fprofile-generate -fdump-tree-optimized" } */
/* { dg-require-profiling "-fprofile-generate" } */
/* { dg-require-ifunc "" } */

void foo_ifunc2() __attribute__((ifunc("foo_resolver")));

void bar(void)
{
}

static int f3()
{
  bar ();
  return 5;
}

void (*foo_resolver(void))(void)
{
  f3();
  return bar;
}

/* { dg-final { scan-tree-dump-not "__gcov_indirect_call_profiler_v" "optimized" } } */