summaryrefslogtreecommitdiffstats
path: root/tests/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs')
-rw-r--r--tests/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs b/tests/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs
new file mode 100644
index 000000000..2f7aed924
--- /dev/null
+++ b/tests/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs
@@ -0,0 +1,17 @@
+// compile-flags:-C panic=unwind
+// no-prefer-dynamic
+
+#![feature(panic_runtime)]
+#![crate_type = "rlib"]
+
+#![no_std]
+#![panic_runtime]
+
+#[no_mangle]
+pub extern "C" fn __rust_maybe_catch_panic() {}
+
+#[no_mangle]
+pub extern "C" fn __rust_start_panic() {}
+
+#[no_mangle]
+pub extern "C" fn rust_eh_personality() {}