rt_gccstream/gcc/testsuite/g++.old-deja/g++.ns/koenig1.C

19 lines
202 B
C

// { dg-do assemble }
class ostream;
extern ostream cout;
namespace foo
{
struct S
{
int i;
};
extern ostream &operator<<(ostream &, const S &);
}
void bar(foo::S s)
{
cout << s ;
}