summary refs log tree commit diff
path: root/tests/assembly-llvm/auxiliary/breakpoint-panic-handler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/assembly-llvm/auxiliary/breakpoint-panic-handler.rs')
-rw-r--r--tests/assembly-llvm/auxiliary/breakpoint-panic-handler.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/assembly-llvm/auxiliary/breakpoint-panic-handler.rs b/tests/assembly-llvm/auxiliary/breakpoint-panic-handler.rs
new file mode 100644
index 00000000000..d54c1181e1a
--- /dev/null
+++ b/tests/assembly-llvm/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();
+}