Updated Malay translation for the bfd sub-directory
[binutils-gdb.git] / ld / testsuite / ld-ifunc / pr18841b.c
blob1e87469c5f9b9d01492d633f4f4e3bcffb678f1c
1 void foo() __attribute__((ifunc("resolve_foo")));
3 static void foo_impl() {}
5 extern void abort (void);
6 void test()
8 void (*pg)(void) = foo;
9 if (pg != foo_impl)
10 abort ();
11 pg();
14 static void* resolve_foo()
16 extern void zoo(void);
18 void (*pz)(void) = zoo;
19 pz();
20 return foo_impl;