aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/unify4.C
blob: 9285b21c2ee860c46fe23e854ae256dff7828172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
template <class T> void f (T);	// { dg-message "note" }

void g ();
void g (int);

int
main ()
{
  f (g);			// { dg-error "" } ambiguous unification
  // { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } 10 }
  return 0;
}