summaryrefslogtreecommitdiffstats
path: root/tests/run-make/issue-69368/b.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/issue-69368/b.rs')
-rw-r--r--tests/run-make/issue-69368/b.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run-make/issue-69368/b.rs b/tests/run-make/issue-69368/b.rs
new file mode 100644
index 000000000..4d6af0266
--- /dev/null
+++ b/tests/run-make/issue-69368/b.rs
@@ -0,0 +1,8 @@
+#![crate_type = "rlib"]
+#![feature(alloc_error_handler)]
+#![no_std]
+
+#[alloc_error_handler]
+pub fn error_handler(_: core::alloc::Layout) -> ! {
+ panic!();
+}