1 // { dg-do assemble } 2 struct Fooey { 3 void f(char* pX); 4 void f(int in); 5 void f(float fx); 6 void h(double dx); 7 }; 8 f(char *)9void Fooey::f(char*) { } // { dg-error "" } candidate f(int)10void Fooey::f(int) { } // { dg-error "" } candidate f(float)11void Fooey::f(float) { } // { dg-error "" } candidate h(double zahl)12void Fooey::h(double zahl) { } 13 main()14int main() { 15 Fooey Blah; 16 void (Fooey::*pointer)(double); 17 pointer = &Fooey::f; // { dg-error "" } don't call Fooey::h 18 (Blah.*pointer)(42.5); 19 return 0; 20 } 21