new
authorJason Merrill <jason@gcc.gnu.org>
Mon, 29 Mar 1999 01:08:51 +0000 (20:08 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 29 Mar 1999 01:08:51 +0000 (20:08 -0500)
From-SVN: r26049

gcc/testsuite/g++.old-deja/g++.pt/partial3.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/partial3.C b/gcc/testsuite/g++.old-deja/g++.pt/partial3.C
new file mode 100644 (file)
index 0000000..49820db
--- /dev/null
@@ -0,0 +1,16 @@
+// Test that partial ordering works between conversion ops from different
+// classes.
+// From Jason Merrill <jason@cygnus.com>
+
+struct A {
+  template <class T> operator T*() { return 0; }
+};
+struct B : public A {
+  template <class T> operator T();
+};
+
+int main()
+{
+  B b;
+  (void*) b;
+}