1 #include <stdio.h>
2
3 static int foo (int x) __attribute__ ((ifunc ("resolve_foo")));
4
5 static int foo_impl(int x)
6 {
7 return x;
8 }
9
10 static void *resolve_foo (void)
11 {
12 return (void *) foo_impl;
13 }
14
15 int
16 main ()
17 {
18 foo (0);
19 puts ("PASS");
20 return 0;
21 }