about summary refs log tree commit diff
path: root/tests/ui/panic-runtime/auxiliary/needs-unwind.rs
blob: d0d20b267d4b3c25245cddf8ec343b456206396b (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();
}