diff options
| author | Gary Guo <gary@garyguo.net> | 2022-05-11 23:08:02 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2022-05-12 00:03:48 +0100 |
| commit | c586bc3d760c4cb158aba5c59ca15809a6957142 (patch) | |
| tree | 822ae1e258cbfa758668a26c2586efa5885c680a /src/test/codegen | |
| parent | 6dd68402c5d7da168f87d8551dd9aed1d8a21893 (diff) | |
| download | rust-c586bc3d760c4cb158aba5c59ca15809a6957142.tar.gz rust-c586bc3d760c4cb158aba5c59ca15809a6957142.zip | |
Prevent unwinding when `-C panic=abort` is used regardless declared ABI
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/unwind-abis/c-unwind-abi-panic-abort.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/codegen/unwind-abis/c-unwind-abi-panic-abort.rs b/src/test/codegen/unwind-abis/c-unwind-abi-panic-abort.rs index 398937a04c9..5334a1c004d 100644 --- a/src/test/codegen/unwind-abis/c-unwind-abi-panic-abort.rs +++ b/src/test/codegen/unwind-abis/c-unwind-abi-panic-abort.rs @@ -1,7 +1,7 @@ // compile-flags: -C panic=abort -// Test that `nounwind` atributes are not applied to `C-unwind` extern functions -// even when the code is compiled with `panic=abort`. +// Test that `nounwind` atributes are also applied to extern `C-unwind` Rust functions +// when the code is compiled with `panic=abort`. #![crate_type = "lib"] #![feature(c_unwind)] @@ -19,4 +19,4 @@ pub unsafe extern "C-unwind" fn rust_item_that_can_unwind() { // Now, make sure that the LLVM attributes for this functions are correct. First, make // sure that the first item is correctly marked with the `nounwind` attribute: // -// CHECK-NOT: attributes #0 = { {{.*}}nounwind{{.*}} } +// CHECK: attributes #0 = { {{.*}}nounwind{{.*}} } |
