9414c06cee283aeb12454fa9f0c16d6d6202ecd6
[gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / template30.C
1 // { dg-do assemble }
2 template <class T, class U>
3 int func(U, T); // { dg-message "note" }
4
5 template <class T, class U>
6 int func(T, U) // { dg-message "note" }
7 {
8 return 2;
9 }
10
11 int main ()
12 {
13 func (0, 1); // { dg-error "ambiguous" }
14 // { dg-message "candidate" "candidate note" { target *-*-* } 13 }
15 }