summaryrefslogtreecommitdiffstats
path: root/tests/run-make/issue-69368/a.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/issue-69368/a.rs')
-rw-r--r--tests/run-make/issue-69368/a.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/run-make/issue-69368/a.rs b/tests/run-make/issue-69368/a.rs
new file mode 100644
index 000000000..a54f42955
--- /dev/null
+++ b/tests/run-make/issue-69368/a.rs
@@ -0,0 +1,26 @@
+#![crate_type = "rlib"]
+#![feature(lang_items)]
+#![feature(panic_unwind)]
+#![no_std]
+
+extern crate panic_unwind;
+
+#[panic_handler]
+pub fn panic_handler(_: &core::panic::PanicInfo) -> ! {
+ loop {}
+}
+
+#[no_mangle]
+extern "C" fn __rust_drop_panic() -> ! {
+ loop {}
+}
+
+#[no_mangle]
+extern "C" fn __rust_foreign_exception() -> ! {
+ loop {}
+}
+
+#[lang = "eh_personality"]
+fn eh_personality() {
+ loop {}
+}