Commit | Line | Data |
---|---|---|
8540c487 SW |
1 | namespace O |
2 | { | |
3 | int ox = 4; | |
4 | } | |
5 | ||
6 | namespace PQ | |
7 | { | |
8 | int marker6 () | |
9 | { | |
10 | return 0; | |
11 | } | |
12 | } | |
13 | ||
14 | namespace P | |
15 | { | |
16 | using namespace O; | |
17 | } | |
18 | ||
19 | //-------------- | |
20 | namespace C | |
21 | { | |
22 | int cc = 3; | |
23 | } | |
24 | ||
25 | using namespace C; | |
26 | int marker5 () | |
27 | { | |
28 | cc; | |
29 | return PQ::marker6 (); | |
30 | } | |
31 | ||
32 | ||
27aa8d6a SW |
33 | namespace A |
34 | { | |
35 | int _a = 1; | |
36 | int x = 2; | |
37 | } | |
38 | ||
39 | int marker4(){ | |
40 | using A::x; | |
8540c487 | 41 | return marker5 (); |
27aa8d6a SW |
42 | } |
43 | ||
44 | int marker3(){ | |
45 | return marker4(); | |
46 | } | |
47 | ||
48 | int marker2() | |
49 | { | |
50 | namespace B = A; | |
51 | B::_a; | |
52 | return marker3(); | |
53 | } | |
54 | ||
55 | int marker1() | |
56 | { | |
57 | int total = 0; | |
58 | { | |
59 | int b = 1; | |
60 | { | |
61 | using namespace A; | |
62 | int c = 2; | |
63 | { | |
64 | int d = 3; | |
65 | total = _a + b + c + d + marker2(); // marker1 stop | |
66 | } | |
67 | } | |
68 | } | |
8540c487 | 69 | return marker2() + total; |
27aa8d6a SW |
70 | } |
71 | ||
72 | int main() | |
73 | { | |
74 | using namespace A; | |
75 | _a; | |
76 | return marker1(); | |
77 | } |