summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/deduce3.C
blob: e8a1d4e2b51cea72d23548a453f62baf69c6f5c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
template <typename T>
void f(int, T (*)() = 0);	// { dg-message "note" }

void g() {
  typedef int A[2];
  f<A>(0); // { dg-error "" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 6 }
  typedef void F();
  f<F>(0); // { dg-error "" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 9 }
}