Rollup merge of #120310 - krasimirgg:jan-v0-sym, r=Mark-Simulacrum

adapt test for v0 symbol mangling

No functional changes intended.

Adapts the test to also work under `new-symbol-mangling = true`.
This commit is contained in:
Guillaume Gomez 2024-01-30 16:57:48 +01:00 committed by GitHub
commit 6a1d34f32a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,6 +21,6 @@ pub fn read_up_to_8(buf: &[u8]) -> u64 {
// CHECK-LABEL: @checking_unwrap_expectation(
#[no_mangle]
pub fn checking_unwrap_expectation(buf: &[u8]) -> &[u8; 4] {
// CHECK: call void @_ZN4core6result13unwrap_failed17h
// CHECK: call void @{{.*core6result13unwrap_failed}}
buf.try_into().unwrap()
}