Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / attr-ifunc-5.c
blob4dddec430efb03a37abf0d581a638db058b88dee
1 /* { dg-do run } */
2 /* { dg-require-ifunc "" } */
3 /* { dg-options "" } */
5 #include <stdio.h>
7 static void *implementation (void)
9 printf ("'ere I am JH\n");
10 return 0;
13 static void *resolver (void)
15 return (void *)implementation;
18 extern int magic (void) __attribute__ ((ifunc ("resolver"),visibility ("hidden")));
20 int main ()
22 return magic () != 0;