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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 227 jeremybenn
namespace A
2
{
3
  int x = 11;
4
}
5
 
6
int x = 22;
7
int y = 0;
8
 
9
class B
10
{
11
public:
12
  int x;
13
 
14
  int
15
  func()
16
  {
17
    x = 33;
18
    y++; // marker1
19
 
20
      {
21
        int x = 44;
22
        y++; // marker2
23
 
24
          {
25
            int x = 55;
26
            y++; // marker3
27
 
28
              {
29
                using namespace A;
30
                y++; // marker4
31
 
32
                using A::x;
33
                y++; // marker5
34
              }
35
          }
36
      }
37
  }
38
};
39
 
40
int
41
main()
42
{
43
  B theB;
44
  return theB.func();
45
}

powered by: WebSVN 2.1.0

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