diff options
Diffstat (limited to 'src/test/codegen/force-no-unwind-tables.rs')
-rw-r--r-- | src/test/codegen/force-no-unwind-tables.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/codegen/force-no-unwind-tables.rs b/src/test/codegen/force-no-unwind-tables.rs new file mode 100644 index 000000000..3ee23f05e --- /dev/null +++ b/src/test/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!(); +} |