summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template30.C
blob: 9414c06cee283aeb12454fa9f0c16d6d6202ecd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }
}