b.c (311B)
1 /* TU2: take &my_fn (an undef ref to an IFUNC defined in a.c) and 2 * call it through a function pointer. Volatile prevents the 3 * compiler from inlining the call site through to my_fn directly. */ 4 5 extern int my_fn(void); 6 7 int test_main(void) { 8 int (*volatile p)(void) = my_fn; 9 return p() == 42 ? 0 : 1; 10 }