new
authorJason Merrill <jason@gcc.gnu.org>
Sat, 28 Mar 1998 03:08:12 +0000 (22:08 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 28 Mar 1998 03:08:12 +0000 (22:08 -0500)
From-SVN: r18870

gcc/testsuite/g++.old-deja/g++.other/overload1.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/pmf1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.other/overload1.C b/gcc/testsuite/g++.old-deja/g++.other/overload1.C
new file mode 100644 (file)
index 0000000..dde6d4f
--- /dev/null
@@ -0,0 +1,11 @@
+struct A {
+  A operator+ (int) const { return *this; }
+};
+
+A operator+ (A, float);
+
+main ()
+{
+  A a;
+  a + 1;
+}
diff --git a/gcc/testsuite/g++.old-deja/g++.other/pmf1.C b/gcc/testsuite/g++.old-deja/g++.other/pmf1.C
new file mode 100644 (file)
index 0000000..e84a39a
--- /dev/null
@@ -0,0 +1,8 @@
+struct foo {};
+typedef long unsigned int & (foo::*pmf)(void);
+void fn (...) {}
+int main ()
+{
+  pmf y = 0;
+  fn (y);
+}