blob: a376f2459876405f371138be079c34108ff0909b [file] [log] [blame]
// { 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;
}