summaryrefslogtreecommitdiffstats
path: root/tests/run-make/foreign-rust-exceptions/bar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/foreign-rust-exceptions/bar.rs')
-rw-r--r--tests/run-make/foreign-rust-exceptions/bar.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run-make/foreign-rust-exceptions/bar.rs b/tests/run-make/foreign-rust-exceptions/bar.rs
new file mode 100644
index 000000000..5f9efe323
--- /dev/null
+++ b/tests/run-make/foreign-rust-exceptions/bar.rs
@@ -0,0 +1,7 @@
+#![crate_type = "cdylib"]
+#![feature(c_unwind)]
+
+#[no_mangle]
+extern "C-unwind" fn panic() {
+ panic!();
+}