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/] [explicit37.C] - Rev 816
Compare with Previous | Blame | View Log
// { dg-do link }
// GROUPS passed templates
class ostream {};
template <class T>
class S;
template <class T>
void operator<<(ostream&, S<T>) {}
template <class T>
class S
{
friend void operator<<<>(ostream&, const S<T>);
};
int main()
{
ostream o;
o << S<int>();
}