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.

13 lines
191 B
Rust
Raw Normal View History

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