new
authorJason Merrill <jason@gcc.gnu.org>
Fri, 9 Oct 1998 02:08:19 +0000 (22:08 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 9 Oct 1998 02:08:19 +0000 (22:08 -0400)
From-SVN: r22954

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

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/overload6.C b/gcc/testsuite/g++.old-deja/g++.pt/overload6.C
new file mode 100644 (file)
index 0000000..10f793a
--- /dev/null
@@ -0,0 +1,13 @@
+// Check that foo<int> isn't resolved too early.
+
+template <class T> void foo(T*);
+template <class T, class U> void foo(T*, U) { }
+
+template <class T, class U> void bar(void (*)(T, U), U) { }
+
+int main() {
+  bar<int*>(&foo, 1);
+  bar<int*>(&foo<int>, 1);  
+  bar<int*>(foo, 1);
+  bar<int*>(foo<int>, 1);  
+}