--- /dev/null
+// Test for implicit & on methods.
+// Contributed by Jason Merrill <jason@cygnus.com>.
+// Special g++ Options: -fpermissive -w
+
+struct A {
+ void f (int = 0) { }
+};
+
+int
+main ()
+{
+ void (A::*p)(int) = 0;
+ p = A::f;
+ if (p != A::f)
+ return 1;
+}
--- /dev/null
+// Test for overload resolution in comparison expressions.
+// Contributed by Jason Merrill <jason@cygnus.com>.
+// Special g++ Options: -fpermissive -w
+
+void f (int) { }
+void f ();
+
+int main () {
+ void (*p)(int);
+ p = f;
+ if (p != f)
+ return 1;
+}
class B {
public:
- void setHandler(handler); // ERROR - fn ref in err msg
+ void setHandler(handler);
};
void f(B* b) {
--- /dev/null
+// Test that default args don't mess up pmf type comparisons.
+// Contributed by Jason Merrill <jason@cygnus.com>.
+
+struct A {
+ void f (int = 0) { }
+};
+
+int
+main ()
+{
+ void (A::*p)(int) = 0;
+ p = &A::f;
+ if (p != &A::f)
+ return 1;
+}