Sign in
fuchsia
/
third_party
/
github.com
/
llvm
/
llvm-test-suite
/
bcad7a46b6a21f3d0e0d0a92a094218f0b9abf4c
/
.
/
SingleSource
/
Regression
/
C++
/
short_circuit_dtor.cpp
blob: 2e04fc38ded2bef75ccb3313411c2e1f93381fd4 [
file
] [
log
] [
blame
]
#include
<stdio.h>
struct
X
{
int
Val
;
X
(
int
i
)
:
Val
(
i
)
{
printf
(
"X::X(%d)\n"
,
Val
);
}
~
X
()
{
printf
(
"X::~X(%d)\n"
,
Val
);
}
};
bool
foo
(
const
X
&)
{
return
true
;
}
void
bar
()
{}
int
main
()
{
if
((
foo
(
1
)
||
foo
(
2
)))
bar
();
return
0
;
}