rust/tests/assembly/auxiliary/breakpoint-panic-handler.rs

9 lines
209 B
Rust
Raw Normal View History

2019-02-27 16:31:30 -06:00
#![feature(core_intrinsics)]
#![no_std]
#[panic_handler]
unsafe fn breakpoint_panic_handler(_: &::core::panic::PanicInfo) -> ! {
core::intrinsics::breakpoint();
core::hint::unreachable_unchecked();
}