summaryrefslogtreecommitdiffstats
path: root/tests/codegen/force-no-unwind-tables.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codegen/force-no-unwind-tables.rs')
-rw-r--r--tests/codegen/force-no-unwind-tables.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/codegen/force-no-unwind-tables.rs b/tests/codegen/force-no-unwind-tables.rs
new file mode 100644
index 000000000..3ee23f05e
--- /dev/null
+++ b/tests/codegen/force-no-unwind-tables.rs
@@ -0,0 +1,11 @@
+// compile-flags: -C no-prepopulate-passes -C panic=abort -C force-unwind-tables=n
+// ignore-windows
+
+#![crate_type="lib"]
+
+// CHECK-LABEL: define{{.*}}void @foo
+// CHECK-NOT: attributes #{{.*}} uwtable
+#[no_mangle]
+fn foo() {
+ panic!();
+}