2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / addrfunc2.C
blob7314d1632f838e0b2ed5ee11f62963414f8674f8
1 // { dg-do run  }
2 // { dg-options "-fms-extensions" }
3 // Test for implicit & on methods.
4 // Contributed by Jason Merrill <jason@cygnus.com>.
6 struct A {
7   void f (int = 0) { }
8 };
10 int
11 main ()
13   void (A::*p)(int) = 0;
14   p = A::f;
15   if (p != A::f)
16     return 1;