os-rust/src/test/run-make-fulldeps/foreign-rust-exceptions/foo.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
176 B
Rust
Raw Normal View History

#![feature(c_unwind)]
#[link(name = "bar")]
extern "C-unwind" {
fn panic();
}
fn main() {
let _ = std::panic::catch_unwind(|| {
unsafe { panic() };
});
}