1 // { dg-do run }
2 // { dg-options "-fms-extensions" }
3 // Test for implicit & on methods.
4 // Contributed by Jason Merrill <jason@cygnus.com>.
5
6 struct A {
7 void f (int = 0) { }
8 };
9
10 int
main()11 main ()
12 {
13 void (A::*p)(int) = 0;
14 p = A::f;
15 if (p != A::f)
16 return 1;
17 }
18