diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template30.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/template30.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template30.C b/gcc/testsuite/g++.old-deja/g++.jason/template30.C new file mode 100644 index 000000000..9414c06ce --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/template30.C @@ -0,0 +1,15 @@ +// { dg-do assemble } +template <class T, class U> +int func(U, T); // { dg-message "note" } + +template <class T, class U> +int func(T, U) // { dg-message "note" } +{ + return 2; +} + +int main () +{ + func (0, 1); // { dg-error "ambiguous" } + // { dg-message "candidate" "candidate note" { target *-*-* } 13 } +} |