projects
/
deliverable
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
2010-01-27 Sami Wagiaalla <swagiaal@redhat.com>
[deliverable/binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.cp
/
nsusing.cc
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
33
namespace
A
34
{
35
int
_a
=
1
;
36
int
x
=
2
;
37
}
38
39
int
marker4
(){
40
using
A
::
x
;
41
return
marker5
();
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
}
69
return
marker2
() +
total
;
70
}
71
72
int
main
()
73
{
74
using namespace
A
;
75
_a
;
76
return
marker1
();
77
}
This page took
0.032056 seconds
and
5
git commands to generate.