URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [decltype26.C] - Rev 749
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-options -std=c++0x }
struct A { };
template <class T>
decltype(f(T())) f(T t) // { dg-error "depth" }
{
return f(t);
}
int main()
{
f(A()); // { dg-error "no match" }
}
// { dg-prune-output "note" }
Go to most recent revision | Compare with Previous | Blame | View Log