Fix codegen tests on panic=abort targets

This commit is contained in:
Nikita Popov 2023-08-08 11:28:37 +02:00
parent 31ee8b1818
commit 0608fca3ad
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,5 @@
// compile-flags: -Cno-prepopulate-passes
// needs-unwind
#![crate_type = "lib"]
// This test checks that drop calls in unwind landing pads

View File

@ -30,8 +30,7 @@ pub fn check_no_escape_in_landingpad(f: fn()) {
// With inlining, the landing pad should be optimized out.
// See https://github.com/rust-lang/rust/issues/87055
// CHECK-LABEL: @check_eliminate_noop_drop
// CHECK: start:
// CHECK-NEXT: call void %g()
// CHECK: call void %g()
// CHECK-NEXT: ret void
#[no_mangle]
pub fn check_eliminate_noop_drop(g: fn()) {