summaryrefslogtreecommitdiff
path: root/tests/ui/panic-runtime/auxiliary/needs-unwind.rs
blob: d555b531986b0d28dd3e22d77cf8e3f9d00aa5ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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();
}