about summary refs log tree commit diff
path: root/tests/ui/panic-runtime/auxiliary/needs-unwind-immediate-abort.rs
blob: 295876fec5279d9297d01a673fa7bb450ed3c794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ compile-flags:-C panic=unwind
//@ no-prefer-dynamic
//@ add-core-stubs

#![crate_type = "rlib"]
#![feature(no_core)]
#![no_std]
#![no_core]

extern crate minicore;

extern "C-unwind" fn foo() {}

#[inline]
fn bar() {
    let ptr: extern "C-unwind" fn() = foo;
    ptr();
}