URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explicit56.C] - Rev 853
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
template <class T> T* create ();
template <class T> T* create2()
{
return create<T>();
}
template <class T> T* create ()
{
return new T;
}
int main()
{
int *p = create2<int>();
}
Go to most recent revision | Compare with Previous | Blame | View Log