[BOLT] Make ifunc test not statically-resolvable. NFC

This fixes a breakage caused by e976385415
This commit is contained in:
Jon Roelofs
2024-02-06 15:15:04 -08:00
parent 8075f0db16
commit b98db441f0

View File

@@ -51,8 +51,11 @@
// REL_CHECK: [[#REL_SYMB_ADDR]] {{.*}} FUNC {{.*}} resolver_foo
static void foo() {}
static void bar() {}
static void *resolver_foo(void) { return foo; }
extern int use_foo;
static void *resolver_foo(void) { return use_foo ? foo : bar; }
__attribute__((ifunc("resolver_foo"))) void ifoo();