Update copyright year in most headers.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / namespace-using.cc
1 namespace A
2 {
3 int _a = 1;
4 int x = 2;
5 }
6
7 int marker4(){
8 using A::x;
9 return 0;
10 }
11
12 int marker3(){
13 return marker4();
14 }
15
16 int marker2()
17 {
18 namespace B = A;
19 B::_a;
20 return marker3();
21 }
22
23 int marker1()
24 {
25 int total = 0;
26 {
27 int b = 1;
28 {
29 using namespace A;
30 int c = 2;
31 {
32 int d = 3;
33 total = _a + b + c + d + marker2(); // marker1 stop
34 }
35 }
36 }
37 return total;
38 }
39
40 int main()
41 {
42 using namespace A;
43 _a;
44 return marker1();
45 }
This page took 0.030163 seconds and 4 git commands to generate.