1 // { dg-do run } 2 // Test for proper handling of references to overloaded member functions. 3 4 struct A { fA5 static void f (int) { } 6 void f (); 7 }; 8 9 void (*p)(int) = &A::f; 10 f()11void A::f () 12 { 13 p = f; 14 } 15 main()16int main() 17 { 18 A a; 19 p = &a.f; 20 (a.f)(); 21 (a.f)(42); 22 } 23