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
[JITLink][LoongArch] Support R_LARCH_ALIGN relaxation (#122259)
[llvm-project.git]
/
lldb
/
test
/
API
/
lang
/
cpp
/
namespace_conflicts
/
main.cpp
blob
525b45d37ef52720236d02ed0a3a33524dbac532
1
namespace
n
{
2
struct
D
{
3
int
i
;
4
static int
anInt
() {
return
2
; }
5
int
dump
() {
return
i
; }
6
};
7
}
8
9
using namespace
n
;
10
11
int
foo
(
D
*
D
) {
12
return
D
->
dump
();
//% self.expect("expression -- D->dump()", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["int", "2"])
13
}
14
15
int
main
(
int
argc
,
char const
*
argv
[])
16
{
17
D myD
{
D
::
anInt
() };
18
foo
(&
myD
);
19
return
0
;
20
}