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 00000000000..10f793a8633 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/overload6.C @@ -0,0 +1,13 @@ +// Check that foo isn't resolved too early. + +template void foo(T*); +template void foo(T*, U) { } + +template void bar(void (*)(T, U), U) { } + +int main() { + bar(&foo, 1); + bar(&foo, 1); + bar(foo, 1); + bar(foo, 1); +}