mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-24 22:07:03 +00:00
19 lines
277 B
Rust
19 lines
277 B
Rust
//@ 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();
|
|
}
|