2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / lookup4.C
blob8fa29689287c3109fb84e454828ebed9d59995ee
1 // { dg-do run  }
2 // Test for proper handling of references to overloaded member functions.
4 struct A {
5   static void f (int) { }
6   void f ();
7 };
9 void (*p)(int) = &A::f;
11 void A::f ()
13   p = f;
16 int main()
18   A a;
19   p = &a.f;
20   (a.f)();
21   (a.f)(42);