OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.cp/] [nsrecurs.cc] - Blame information for rev 862

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
namespace A
2
{
3
  int ax = 9;
4
}
5
 
6
namespace B
7
{
8
  using namespace A;
9
}
10
 
11
namespace C
12
{
13
  using namespace B;
14
}
15
 
16
using namespace C;
17
 
18
//---------------
19
namespace D
20
{
21
  using namespace D;
22
  int dx = 99;
23
}
24
using namespace D;
25
 
26
//---------------
27
namespace
28
{
29
  namespace
30
  {
31
    int xx = 999;
32
  }
33
}
34
 
35
//---------------
36
namespace E
37
{
38
  int ex = 9999;
39
}
40
 
41
namespace F
42
{
43
  namespace FE = E;
44
}
45
 
46
namespace G
47
{
48
  namespace GF = F;
49
}
50
 
51
//----------------
52
int main ()
53
{
54
  using namespace D;
55
  namespace GX = G;
56
  return ax + dx + xx + G::GF::FE::ex;
57
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.