blob: 17b26850d4d2518d8b718f92354e570667e1dd9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// no-prefer-dynamic
#![crate_type = "lib"]
#![no_std]
#![feature(lang_items)]
use core::panic::PanicInfo;
use core::sync::atomic::{self, Ordering};
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {
atomic::compiler_fence(Ordering::SeqCst);
}
}
#[lang = "eh_personality"]
fn foo() {}
|