URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename24.C] - Rev 749
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Origin: Mark Mitchell <mark@codesourcery.com>
class ostream;
extern ostream& cout;
class Foo { };
ostream &operator<<(ostream &os, const Foo &)
{
return os;
}
template<class T>
const typename T::fooz &operator<<(const Foo &, const T &t)
{
return t;
}
int main()
{
Foo foo;
cout << foo;
}
Go to most recent revision | Compare with Previous | Blame | View Log