2022-10-23 15:30:37 -05:00
|
|
|
#[cfg_attr(not(windows), link(name = "bar"))]
|
|
|
|
#[cfg_attr(windows, link(name = "bar.dll"))]
|
2022-10-05 17:58:35 -05:00
|
|
|
extern "C-unwind" {
|
|
|
|
fn panic();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = std::panic::catch_unwind(|| {
|
|
|
|
unsafe { panic() };
|
|
|
|
});
|
|
|
|
}
|