Skip to content

Commit

Permalink
inherit_overflow: adapt pattern to also work with v0 mangling
Browse files Browse the repository at this point in the history
This test was failing under new-symbol-mangling = true. Adapt pattern to
work in both cases.

Related to rust-lang#106002 from December.
  • Loading branch information
durin42 committed Mar 15, 2023
1 parent e4b9f86 commit 0b9b7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/codegen/inherit_overflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//[NOASSERT] compile-flags: -Coverflow-checks=off

// CHECK-LABEL: define{{.*}} @assertion
// ASSERT: call void @_ZN4core9panicking5panic17h
// ASSERT: call void @{{.*4core9panicking5panic}}
// NOASSERT: ret i8 0
#[no_mangle]
pub fn assertion() -> u8 {
Expand Down

0 comments on commit 0b9b7dd

Please sign in to comment.