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
PR tree-optimization/113673: Avoid load merging when potentially trapping.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ns
/
alias3.C
blob
45f004984782451637fb9449d64a546b51da8f41
1
// { dg-do run }
2
namespace A{
3
struct X{};
4
void f(X&);
5
extern int i;
6
namespace a_very_long_namespace_name{
7
int k;
8
}
9
}
10
11
namespace B = A;
12
namespace B = A;
13
namespace B = B;
14
15
namespace avl = A::a_very_long_namespace_name;
16
17
void B::f(A::X& x)
18
{
19
B::f(x);
20
f(x);
21
avl::k = 1;
22
}
23
24
int B::i = 0;
25
26
int main()
27
{
28
B::X x;
29
if (B::i)
30
A::f(x);
31
}