summaryrefslogtreecommitdiffstats
path: root/tests/ui/panic-handler/auxiliary/some-panic-impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/panic-handler/auxiliary/some-panic-impl.rs')
-rw-r--r--tests/ui/panic-handler/auxiliary/some-panic-impl.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/panic-handler/auxiliary/some-panic-impl.rs b/tests/ui/panic-handler/auxiliary/some-panic-impl.rs
new file mode 100644
index 000000000..0348b3a2d
--- /dev/null
+++ b/tests/ui/panic-handler/auxiliary/some-panic-impl.rs
@@ -0,0 +1,11 @@
+// no-prefer-dynamic
+
+#![crate_type = "rlib"]
+#![no_std]
+
+use core::panic::PanicInfo;
+
+#[panic_handler]
+fn panic(info: &PanicInfo) -> ! {
+ loop {}
+}