summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr19784b.c
blob: 8ea7ce2c86956c17879138b67d43918fff3d51fe (plain)
1
2
3
4
5
6
7
8
9
10
11
int foo (int x) __attribute__ ((ifunc ("resolve_foo")));

static int foo_impl(int x)
{
  return x;
}

void *resolve_foo (void)
{
  return (void *) foo_impl;
}