aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/nsrecurs.cc
blob: 2edc35fc206d64ecdb07acaaf35f275d3141e1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
namespace A
{
  int ax = 9;
}

namespace B
{
  using namespace A;
}

namespace C
{
  using namespace B;
}

using namespace C;

//---------------
namespace D
{
  using namespace D;
  int dx = 99;
}
using namespace D;

//---------------
namespace
{
  namespace
  {
    int xx = 999;
  }
}

//---------------
namespace E
{
  int ex = 9999;
}

namespace F
{
  namespace FE = E;
}

namespace G
{
  namespace GF = F;
}

//----------------
int main ()
{
  using namespace D;
  namespace GX = G;
  return ax + dx + xx + G::GF::FE::ex;
}