binutils-gdb/ld/testsuite/ld-ifunc/pr18841c.c
H.J. Lu 4e1626f5a8 Add another test for PR ld/18841
PR ld/18841
	* ld-ifunc/ifunc.exp: Add another test for PR ld/18841.
	* ld-ifunc/pr18841c.c: New file.
2015-08-18 10:43:47 -07:00

18 lines
234 B
C

void foo() __attribute__((ifunc("resolve_foo")));
static void foo_impl() {}
extern void zoo(void);
void (*pz)(void) = zoo;
void test()
{
void (*pg)(void) = foo;
pg();
}
static void* resolve_foo()
{
pz();
return foo_impl;
}