rust/tests/ui/panic-runtime/auxiliary/needs-unwind.rs
2023-01-11 09:32:08 +00:00

14 lines
211 B
Rust

// 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();
}