mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
433da1fc04
They pass fine.
27 lines
410 B
Rust
27 lines
410 B
Rust
#![crate_type = "rlib"]
|
|
#![feature(lang_items)]
|
|
#![feature(panic_unwind)]
|
|
#![no_std]
|
|
|
|
extern crate panic_unwind;
|
|
|
|
#[panic_handler]
|
|
pub fn panic_handler(_: &core::panic::PanicInfo) -> ! {
|
|
loop {}
|
|
}
|
|
|
|
#[no_mangle]
|
|
extern "C" fn __rust_drop_panic() -> ! {
|
|
loop {}
|
|
}
|
|
|
|
#[no_mangle]
|
|
extern "C" fn __rust_foreign_exception() -> ! {
|
|
loop {}
|
|
}
|
|
|
|
#[lang = "eh_personality"]
|
|
fn eh_personality() {
|
|
loop {}
|
|
}
|