rust/tests/ui/panic-runtime/auxiliary/needs-unwind.rs

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

14 lines
211 B
Rust
Raw Normal View History

// compile-flags:-C panic=unwind
// no-prefer-dynamic
#![crate_type = "rlib"]
#![no_std]
#![feature(c_unwind)]
extern "C-unwind" fn foo() {}
fn bar() {
let ptr: extern "C-unwind" fn() = foo;
ptr();
}