diff options
| author | Ralf Jung <post@ralfj.de> | 2022-12-21 13:49:48 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-12-22 16:37:42 +0100 |
| commit | 9f241b3a26b9344e061094052ecd67a3bde4b2e1 (patch) | |
| tree | 369899a6bb95f1d8f6bfaa5eaf7af1f1cd7ce804 /src/test/codegen | |
| parent | 2d8651a92761421b0437ffb44ba5670bea5ee1df (diff) | |
| download | rust-9f241b3a26b9344e061094052ecd67a3bde4b2e1.tar.gz rust-9f241b3a26b9344e061094052ecd67a3bde4b2e1.zip | |
abort immediately on bad mem::zeroed/uninit
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/unwind-abis/c-unwind-abi-panic-abort.rs | 2 | ||||
| -rw-r--r-- | src/test/codegen/unwind-and-panic-abort.rs | 2 |
2 files changed, 2 insertions, 2 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 34fd401f9e4..ea5bae18e23 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 @@ -10,7 +10,7 @@ #[no_mangle] pub unsafe extern "C-unwind" fn rust_item_that_can_unwind() { // Handle both legacy and v0 symbol mangling. - // CHECK: call void @{{.*core9panicking15panic_no_unwind}} + // CHECK: call void @{{.*core9panicking19panic_cannot_unwind}} may_unwind(); } diff --git a/src/test/codegen/unwind-and-panic-abort.rs b/src/test/codegen/unwind-and-panic-abort.rs index b370191bf8c..e43e73b96b9 100644 --- a/src/test/codegen/unwind-and-panic-abort.rs +++ b/src/test/codegen/unwind-and-panic-abort.rs @@ -10,7 +10,7 @@ extern "C-unwind" { // CHECK: Function Attrs:{{.*}}nounwind // CHECK-NEXT: define{{.*}}void @foo // Handle both legacy and v0 symbol mangling. -// CHECK: call void @{{.*core9panicking15panic_no_unwind}} +// CHECK: call void @{{.*core9panicking19panic_cannot_unwind}} #[no_mangle] pub unsafe extern "C" fn foo() { bar(); |
