summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit75.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/explicit75.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/explicit75.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit75.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit75.C
new file mode 100755
index 0000000..433f0b1
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit75.C
@@ -0,0 +1,11 @@
+// Test for not complaining about mismatches during unification.
+// Build don't link:
+
+template <void (*F)(int)> void f();
+template <void (*F)(double)> void f();
+extern void g(double);
+
+void h ()
+{
+ f<g>();
+}