2017-09-26 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / attr-ifunc-4.c
blob5c87445b3943fe8a1ed4e8d6aa4753608019a4f8
1 /* { dg-do run } */
2 /* { dg-require-ifunc "" } */
3 /* { dg-options "" } */
5 #include <stdio.h>
7 static int implementation (void)
9 printf ("'ere I am JH\n");
10 return 0;
13 static __typeof__ (implementation)* resolver (void)
15 return implementation;
18 static int magic (void) __attribute__ ((ifunc ("resolver")));
20 int main ()
22 return magic () != 0;