Fix codegen tests on panic=abort targets
This commit is contained in:
parent
31ee8b1818
commit
0608fca3ad
@ -1,4 +1,5 @@
|
||||
// compile-flags: -Cno-prepopulate-passes
|
||||
// needs-unwind
|
||||
#![crate_type = "lib"]
|
||||
|
||||
// This test checks that drop calls in unwind landing pads
|
||||
|
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user