about summary refs log tree commit diff
path: root/src/test/codegen/force-unwind-tables.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/codegen/force-unwind-tables.rs')
-rw-r--r--src/test/codegen/force-unwind-tables.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/codegen/force-unwind-tables.rs b/src/test/codegen/force-unwind-tables.rs
new file mode 100644
index 00000000000..fbaf38d69df
--- /dev/null
+++ b/src/test/codegen/force-unwind-tables.rs
@@ -0,0 +1,7 @@
+// min-llvm-version 8.0
+// compile-flags: -C no-prepopulate-passes -C force-unwind-tables=y
+
+#![crate_type="lib"]
+
+// CHECK: attributes #{{.*}} uwtable
+pub fn foo() {}