1// This test checks that IFUNC trampoline is properly recognised by BOLT
2
3static void foo() {}
4static void bar() {}
5
6extern int use_foo;
7
8static void *resolver_foo(void) { return use_foo ? foo : bar; }
9
10__attribute__((ifunc("resolver_foo"))) void ifoo();
11
12void _start() { ifoo(); }
13

source code of bolt/test/Inputs/ifunc.c