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
/
lang
/
cpp
/
chained-calls
/
main.cpp
blob
a888c3f6c557296ef84a66f7fae14cfac7cbb2f8
1
class
Bool
{
2
public
:
3
Bool
operator
&(
const
Bool other
)
4
{
5
Bool result
;
6
result
.
value
=
value
&&
other
.
value
;
7
return
result
;
8
}
9
10
bool
value
;
11
};
12
13
bool
get
(
Bool object
)
14
{
15
return
object
.
value
;
16
}
17
18
Bool
set
(
bool
value
)
19
{
20
Bool result
;
21
result
.
value
=
value
;
22
return
result
;
23
}
24
25
int
main
()
26
{
27
Bool t
=
set
(
true
);
28
Bool f
=
set
(
false
);
29
get
(
t
);
30
get
(
f
);
31
get
(
t
&
f
);
32
return
0
;
// break here
33
}