diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/explicit67.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/explicit67.C | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit67.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit67.C new file mode 100644 index 000000000..c0863a072 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/explicit67.C @@ -0,0 +1,23 @@ +// { dg-do assemble } +struct S +{ + void f(int); + void f(double); +}; + +void g(int); +void g(double); + +template <int* IP> +void foo(); // { dg-message "note" } +template <long l> +void foo(); // { dg-message "note" } + +void bar() +{ + foo<S::f>(); // { dg-error "" } no matching function + // { dg-message "candidate" "candidate note" { target *-*-* } 18 } + foo<g>(); // { dg-error "" } no matching function + // { dg-message "candidate" "candidate note" { target *-*-* } 20 } + +} |