diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/explicit75.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/explicit75.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit75.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit75.C new file mode 100644 index 000000000..aed69aa1f --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/explicit75.C @@ -0,0 +1,11 @@ +// { dg-do assemble } +// Test for not complaining about mismatches during unification. + +template <void (*F)(int)> void f(); +template <void (*F)(double)> void f(); +extern void g(double); + +void h () +{ + f<g>(); +} |