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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
lldb
/
test
/
API
/
benchmarks
/
continue
/
main.cpp
blob
d715a1150d0607e00e1ae020415a154728ca9828
1
#include <map>
2
3
#define intint_map std::map<int, int>
4
5
int
g_the_foo
=
0
;
6
7
int
thefoo_rw
(
int
arg
=
1
)
8
{
9
if
(
arg
<
0
)
10
arg
=
0
;
11
if
(!
arg
)
12
arg
=
1
;
13
g_the_foo
+=
arg
;
14
return
g_the_foo
;
15
}
16
17
int
main
()
18
{
19
intint_map ii
;
20
21
for
(
int
i
=
0
;
i
<
15
;
i
++)
22
{
23
ii
[
i
] =
i
+
1
;
24
thefoo_rw
(
i
);
// break here
25
}
26
27
ii
.
clear
();
28
29
for
(
int
j
=
0
;
j
<
15
;
j
++)
30
{
31
ii
[
j
] =
j
+
1
;
32
thefoo_rw
(
j
);
// break here
33
}
34
35
return
0
;
36
}