Skip to content

Commit

Permalink
adapt test for v0 symbol mangling
Browse files Browse the repository at this point in the history
No functional changes intended.

Adapts the test to also work under new-symbol-mangling = true.
  • Loading branch information
krasimirgg committed Jan 24, 2024
1 parent cd6d8f2 commit e23937c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/codegen/infallible-unwrap-in-opt-z.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit e23937c

Please sign in to comment.