URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [canon-type-12.C] - Rev 847
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-options "-std=c++0x" }
template<class T, T t = (T)0>
struct S
{
void
foo(decltype(t) = t);
};
template<class T, T t>
void
S<T, t>::foo(decltype(t))
{
}
void
bar()
{
S<int> s;
s.foo();
}
Go to most recent revision | Compare with Previous | Blame | View Log