about summary refs log tree commit diff
path: root/tests/run-make/foreign-rust-exceptions/foo.rs
blob: 38942c55b19b0cbc873fca0c2f2c5a75e08b276d (plain)
1
2
3
4
5
6
7
8
9
10
11
#[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() };
    });
}