[LV] Add test showing debug output for loops with uncountable BTCs.
[llvm-project.git] / bolt / test / Inputs / ifunc.c
blob3fa62bef3093073ef923d1fc9b4ffcb24016d024
1 // This test checks that IFUNC trampoline is properly recognised by BOLT
3 static void foo() {}
4 static void bar() {}
6 extern int use_foo;
8 static void *resolver_foo(void) { return use_foo ? foo : bar; }
10 __attribute__((ifunc("resolver_foo"))) void ifoo();
12 void _start() { ifoo(); }