diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1998-10-08 22:08:19 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-10-08 22:08:19 -0400 |
commit | 3fe88ebf0d52945c40325bb0e8586593894abb60 (patch) | |
tree | 8c9d5e06a9ffe263b57b11562ee46c778932d818 | |
parent | ae66ef838f96e8b764704ab5a80f172bbed3f290 (diff) | |
download | gcc-3fe88ebf0d52945c40325bb0e8586593894abb60.zip gcc-3fe88ebf0d52945c40325bb0e8586593894abb60.tar.gz gcc-3fe88ebf0d52945c40325bb0e8586593894abb60.tar.bz2 |
new
From-SVN: r22954
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/overload6.C | 13 |
1 files changed, 13 insertions, 0 deletions
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 index 0000000..10f793a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/overload6.C @@ -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); +} |