repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
lookup-through-linkage.cpp
blob
0a2d609e9dbd9540d570fb36b415739333d2abb0
1
// RUN: %clang_cc1 %s -verify
2
3
// expected-no-diagnostics
4
5
extern
"C++"
{
6
namespace
A
{
7
namespace
B
{
8
int
bar
;
9
}
10
}
// namespace A
11
namespace
C
{
12
void
foo
() {
13
using namespace
A
;
14
(
void
)
B
::
bar
;
15
}
16
}
// namespace C
17
}
18
19
extern
"C"
{
20
extern
"C++"
{
21
namespace
D
{
22
namespace
E
{
23
int
bar
;
24
}
25
}
// namespace A
26
namespace
F
{
27
void
foo
() {
28
using namespace
D
;
29
(
void
)
E
::
bar
;
30
}
31
}
// namespace C
32
}
33
}