URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [auto5.C] - Rev 516
Compare with Previous | Blame | View Log
// Testcase for non-dependent auto in templates
// { dg-options "-std=c++0x" }
struct A
{
template<class> void f();
} a;
template <class T>
void g()
{
auto aa = a;
aa.f<int>();
auto p = new auto (a);
p->f<int>();
}
int main()
{
g<double>();
}