diff options
Diffstat (limited to 'src/test/assembly/auxiliary/breakpoint-panic-handler.rs')
-rw-r--r-- | src/test/assembly/auxiliary/breakpoint-panic-handler.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/assembly/auxiliary/breakpoint-panic-handler.rs b/src/test/assembly/auxiliary/breakpoint-panic-handler.rs new file mode 100644 index 000000000..d54c1181e --- /dev/null +++ b/src/test/assembly/auxiliary/breakpoint-panic-handler.rs @@ -0,0 +1,8 @@ +#![feature(core_intrinsics)] +#![no_std] + +#[panic_handler] +unsafe fn breakpoint_panic_handler(_: &::core::panic::PanicInfo) -> ! { + core::intrinsics::breakpoint(); + core::hint::unreachable_unchecked(); +} |