aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/koenig1.C
blob: bd721fe94e2573afe1613992396e6b06124ff674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Build don't link:
class ostream;
extern ostream cout;
namespace foo
{
  struct S
  {
    int i;
  };
  
  extern ostream &operator<<(ostream &, const S &);
}


void bar(foo::S s)
{
  cout << s ;
}