Sign in
android
/
toolchain
/
rustc
/
43f0694b1feb1296004d84509e01177159e71be0
/
.
/
src
/
test
/
ui
/
panic-runtime
/
auxiliary
/
exit-success-if-unwind.rs
blob: c0e05740542dfaa676956733740fe812f056bf9c [
file
] [
log
] [
blame
]
// no-prefer-dynamic
#![
crate_type
=
"rlib"
]
struct
Bomb
;
impl
Drop
for
Bomb
{
fn
drop
(&
mut
self
)
{
std
::
process
::
exit
(
0
);
}
}
pub
fn
bar
(
f
:
fn
())
{
let
_bomb
=
Bomb
;
f
();
}