Debian Codegraph @

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

raw
1 // { dg-do assemble }
2 class ostream;
3 extern ostream cout;
4 namespace foo
5 {
6 struct S
7 {
8 int i;
9 };
10
11 extern ostream &operator<<(ostream &, const S &);
12 }
13
14
15 void bar(foo::S s)
16 {
17 cout << s ;
18 }