Revert change to gdb.cp/ovldbreak.exp
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / shadow.cc
CommitLineData
8540c487
SW
1namespace A
2{
3 int x = 11;
4}
5
6int x = 22;
7int y = 0;
8
9class B
10{
11public:
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
13387711
SW
32 {
33 using A::x;
34 y++; // marker5
35 }
8540c487
SW
36 }
37 }
38 }
39 }
40};
41
42int
43main()
44{
45 B theB;
46 return theB.func();
47}
This page took 0.961528 seconds and 4 git commands to generate.