2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ns / ns11.C
blob2dc0344f399fc09162fe5bf8b7752942e84d95bd
1 // { dg-do assemble  }
2 // Build don't link
3 // Check [namespace.memdef]/2
5 namespace A{
6   void f(int);
7   void f(int,int);
8   int i;              // { dg-error "" } .*
11 void A::f(){}         // { dg-error "" } should have been declared before
13 namespace B{
14   void A::f(int){}    // { dg-error "" } B does not surround A
17 int A::i;             // { dg-error "" } redefinition
19 void A::f(int,int){}  // ok