aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/explicit38.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/explicit38.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/explicit38.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/explicit38.C b/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/explicit38.C
new file mode 100644
index 000000000..1831e45a3
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/explicit38.C
@@ -0,0 +1,9 @@
+// { dg-do assemble }
+template <int I>
+void f(int j); // { dg-message "note" }
+
+void g()
+{
+ f<7, 12>(3); // { dg-error "" } no matching function.
+ // { dg-message "candidate" "candidate note" { target *-*-* } 7 }
+}