diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/explicit39.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/explicit39.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit39.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit39.C new file mode 100644 index 000000000..995d8c075 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/explicit39.C @@ -0,0 +1,9 @@ +// { dg-do assemble } +template <class T> +void f(int i); // { dg-message "note" } + +void g() +{ + f<7>(3); // { dg-error "" } no matching function. + // { dg-message "candidate" "candidate note" { target *-*-* } 7 } +} |