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

void g() {
  typedef int A[2];
  f<A>(0); // { dg-error "" }
  // { dg-error "returning an array" "returning an array" { target *-*-* } 2 }
  typedef void F();
  f<F>(0); // { dg-error "" }
  // { dg-error "returning a function" "returning a function" { target *-*-* } 2 }
}