Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / attr-ifunc-3.c
blobfbd972d7caabb812786ace5520c2cbcb010870ac
1 /* { dg-do run } */
2 /* { dg-require-ifunc "" } */
3 /* { dg-options "" } */
5 #include <stdio.h>
7 static int __attribute__((noinline))
8 implementation (void *ptr)
10 if (ptr)
11 return ((int (*) (void *))ptr) (0);
13 printf ("'ere I am JH\n");
14 return 0;
17 static void *resolver (void)
19 return (void *)implementation;
22 extern int magic (void *) __attribute__ ((ifunc ("resolver")));
24 int main ()
26 return magic ((void *)magic);