2 /* { dg-require-ifunc "" } */
3 /* { dg-options "-Wno-pmf-conversions" } */
11 static void *resolver ();
14 int Klass::implementation (void)
16 printf ("'ere I am JH\n");
20 void *Klass::resolver (void)
22 int (Klass::*pmf) () = &Klass::implementation;
24 return (void *)(int (*)(Klass *))(((Klass *)0)->*pmf);
27 int Klass::magic (void) __attribute__ ((ifunc ("_ZN5Klass8resolverEv")));
33 return obj.magic () != 0;