summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/alias4.C
blob: 5bff439fcee978a781f51c2a8d5a1ece3a257a3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
namespace A = B;  // { dg-error "" } unknown namespace

namespace C{}
namespace D = C;  
namespace D {     // { dg-error "" } reopening namespace with alias
  void f();
}

void C::f(){}     // { dg-error "" } previous definition

void D::f(){}     // { dg-error "" } redefinition

namespace E = C::F; // { dg-error "" } unknown namespace