URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [canon-type-12.C] - Rev 693
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();
}