summaryrefslogtreecommitdiffstats
path: root/src/test/ui/panic-runtime/unwind-tables-target-required.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/panic-runtime/unwind-tables-target-required.rs')
-rw-r--r--src/test/ui/panic-runtime/unwind-tables-target-required.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/panic-runtime/unwind-tables-target-required.rs b/src/test/ui/panic-runtime/unwind-tables-target-required.rs
new file mode 100644
index 000000000..3abb52b67
--- /dev/null
+++ b/src/test/ui/panic-runtime/unwind-tables-target-required.rs
@@ -0,0 +1,10 @@
+// Tests that the compiler errors if the user tries to turn off unwind tables
+// when they are required.
+//
+// only-x86_64-windows-msvc
+// compile-flags: -C force-unwind-tables=no
+//
+// error-pattern: target requires unwind tables, they cannot be disabled with `-C force-unwind-tables=no`.
+
+pub fn main() {
+}