Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
run-make
/
foreign-rust-exceptions
/
foo.rs
blob: 38942c55b19b0cbc873fca0c2f2c5a75e08b276d [
file
] [
log
] [
blame
] [
edit
]
#[
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
()
};
});
}