URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [deduce3.C] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
template <typename T>
void f(int, T (*)() = 0); // { dg-message "note" }
void g() {
typedef int A[2];
f<A>(0); // { dg-error "" }
// { dg-error "returning an array" "candidate explanation" { target *-*-* } 2 }
typedef void F();
f<F>(0); // { dg-error "" }
// { dg-error "returning a function" "candidate explanation" { target *-*-* } 2 }
}
Go to most recent revision | Compare with Previous | Blame | View Log