Sign in
llvm
/
llvm-test-suite
/
refs/tags/llvmorg-3.5.1-rc2
/
.
/
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
;
}