This source file includes following definitions.
- someFcn
- func
- testToggle1
- testToggle2
- testToggle3
- func2
- func3
- func4
- func5
- func6
- func6
- func7
- func8
- func9
- func10
- func11
- unfoundfunc
- acc_using
- acc_using2
- check_scope
- check_scope2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 #include <adstdio.h>
24
25 #include <testusing.hh>
26
27 namespace moose {
28
29 class MyClass;
30 class Point;
31
32 typedef MyClass snerk;
33 }
34
35 namespace moose {
36
37 class Point;
38 class MyClass;
39
40 }
41
42 namespace {
43
44 int global_variable = 0;
45
46 };
47
48 using moose::MyClass;
49
50 void someFcn() {
51
52 MyClass f;
53
54 f.
55 ;
56
57 }
58
59
60
61 namespace panda {
62
63 using namespace bread_name;
64
65 int func()
66 {
67 bread test;
68 test.
69 ;
70 return 0;
71 }
72 }
73
74 namespace togglemoose {
75
76 MyOtherClass::testToggle1() {
77
78 }
79 }
80
81 togglemoose::MyOtherClass::testToggle2() {
82
83 }
84
85 using togglemoose;
86
87 MyOtherClass::testToggle3() {
88
89 }
90
91
92
93
94 void func2()
95 {
96 using namespace somestuff;
97 OneClass f;
98 f.
99 ;
100 }
101
102 void func3()
103 {
104 using somestuff::OneClass;
105 OneClass f;
106 f.
107 ;
108 }
109
110
111
112
113 void func4()
114 {
115 otherstuff::OneClass f;
116 f.
117 ;
118 }
119
120
121 void func5()
122 {
123 using namespace otherstuff;
124 OneClass f;
125 f.
126 ;
127 }
128
129
130 void func6()
131 {
132 using namespace morestuff;
133 OneClass f;
134 f.
135 ;
136 aStruct g;
137 g.
138 ;
139 }
140
141
142
143 void func6()
144 {
145 using namespace evenmorestuff;
146 OneClass f;
147 f.
148 ;
149 }
150
151
152 void func7()
153 {
154 outer::StructNested f;
155 f.
156 ;
157 }
158
159
160 void func8()
161 {
162 using namespace outerinner;
163 StructNested f;
164 AnotherStruct g;
165 f.
166 ;
167 g.
168 ;
169 }
170
171
172
173 void func9()
174 {
175 alias_for_somestuff::OneClass c;
176 c.
177 ;
178 alias_for_outerinner::AnotherStruct s;
179 s.
180 ;
181 }
182
183
184 void func10()
185 {
186 using namespace alias_for_somestuff;
187 OneClass c2;
188 c2.
189 ;
190 using namespace alias_for_outerinner;
191 AnotherStruct s2;
192 s2.
193 ;
194 }
195
196
197 void func11()
198 {
199 alias_for_somestuff::
200 ;
201 alias_for_outerinner::
202 ;
203 }
204
205
206 using something::cantbe::Found;
207
208 void unfoundfunc()
209 {
210 NotFound notfound;
211
212 notfound.
213 ;
214
215 }
216
217
218
219 void acc_using()
220 {
221 using namespace outer;
222
223 using namespace inner;
224
225 StructNested sn;
226 sn.
227 ;
228 }
229
230
231
232 using namespace outer;
233 using namespace inner;
234
235 void acc_using2()
236 {
237 StructNested sn;
238 sn.
239 ;
240 }
241
242
243
244
245 void check_scope()
246 {
247 using namespace first;
248 AAA
249 ;
250 }
251
252 void check_scope2()
253 {
254 using namespace third;
255 AAA
256 ;
257 }
258
259
260
261 namespace check_scope3 {
262 using namespace first;
263 AAA
264 ;
265 }