rust/tests/ui/panic-runtime/auxiliary/needs-unwind.rs
2023-04-29 13:01:46 +01:00

13 lines
189 B
Rust

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