2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / defarg2.C
blobcc03cebc19135f6b81f9c0dcad87a08579c4166a
1 // { dg-do run  }
2 // Test that default args don't mess up pmf type comparisons.
3 // Contributed by Jason Merrill <jason@cygnus.com>.
5 struct A {
6   void f (int = 0) { }
7 };
9 int
10 main ()
12   void (A::*p)(int) = 0;
13   p = &A::f;
14   if (p != &A::f)
15     return 1;