Adjust scan string for PIE
[official-gcc.git] / gcc / testsuite / gcc.dg / attr-ifunc-4.c
blob698c06b1a749e1ebe4daca2d0974d782f0ea51ac
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 static int magic (void) __attribute__ ((ifunc ("resolver")));
20 int main ()
22 return magic () != 0;