rust/tests/run-make/panic-abort-eh_frame/foo.rs

11 lines
146 B
Rust
Raw Normal View History

#![no_std]
#[panic_handler]
fn handler(_: &core::panic::PanicInfo<'_>) -> ! {
loop {}
}
pub unsafe fn oops(x: *const u32) -> u32 {
*x
}