Sign in
android
/
toolchain
/
rustc
/
89a0a0cd9cbd0a0138a09bd877bbc73859a8c330
/
.
/
src
/
test
/
run-make-fulldeps
/
foreign-rust-exceptions
/
foo.rs
blob: 266987c5b6d63b117c1deeeb37535b917e52730e [
file
] [
log
] [
blame
]
#![
feature
(
c_unwind
)]
#[
cfg_attr
(
not
(
windows
),
link
(
name
=
"bar"
))]
#[
cfg_attr
(
windows
,
link
(
name
=
"bar.dll"
))]
extern
"C-unwind"
{
fn
panic
();
}
fn
main
()
{
let
_
=
std
::
panic
::
catch_unwind
(||
{
unsafe
{
panic
()
};
});
}