mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
18 lines
313 B
Rust
18 lines
313 B
Rust
//@ 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() {}
|