summaryrefslogtreecommitdiffstats
path: root/tests/ui/panic-runtime/need-unwind-got-abort.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/panic-runtime/need-unwind-got-abort.rs')
-rw-r--r--tests/ui/panic-runtime/need-unwind-got-abort.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/panic-runtime/need-unwind-got-abort.rs b/tests/ui/panic-runtime/need-unwind-got-abort.rs
new file mode 100644
index 000000000..6752ecf90
--- /dev/null
+++ b/tests/ui/panic-runtime/need-unwind-got-abort.rs
@@ -0,0 +1,9 @@
+// build-fail
+// error-pattern:is incompatible with this crate's strategy of `abort`
+// aux-build:needs-unwind.rs
+// compile-flags:-C panic=abort
+// no-prefer-dynamic
+
+extern crate needs_unwind;
+
+fn main() {}