summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit8.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/explicit8.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/explicit8.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit8.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit8.C
new file mode 100755
index 0000000..777c5d4
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit8.C
@@ -0,0 +1,13 @@
+// Build don't link:
+// GROUPS passed templates
+template <class T, class U>
+void foo(T t, U u);
+
+template <class U>
+void foo(double, U) {}
+
+void baz()
+{
+ foo<char*>(3.0, "abc");
+ foo<char*, double>("abc", 3.0);
+}