about summary refs log tree commit diff
path: root/tests/ui/panic-runtime/auxiliary/needs-unwind.rs
blob: ba917b52d9a98c5a3752c4ffb9a80766a3de8cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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();
}