repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ns
/
alias3.C
blob
3b8de0cf1a31b4a051101300e4b6b984f85d1c4a
1
namespace A{
2
struct X{};
3
void f(X&);
4
extern int i;
5
namespace a_very_long_namespace_name{
6
int k;
7
}
8
}
9
10
namespace B = A;
11
namespace B = A;
12
namespace B = B;
13
14
namespace avl = A::a_very_long_namespace_name;
15
16
void B::f(A::X& x)
17
{
18
B::f(x);
19
f(x);
20
avl::k = 1;
21
}
22
23
int B::i = 0;
24
25
int main()
26
{
27
B::X x;
28
if (B::i)
29
A::f(x);
30
}