Skip to content

Commit 0608fca

Browse files
committed
Fix codegen tests on panic=abort targets
1 parent 31ee8b1 commit 0608fca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: tests/codegen/unwind-landingpad-cold.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -Cno-prepopulate-passes
2+
// needs-unwind
23
#![crate_type = "lib"]
34

45
// This test checks that drop calls in unwind landing pads

Diff for: tests/codegen/unwind-landingpad-inline.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ pub fn check_no_escape_in_landingpad(f: fn()) {
3030
// With inlining, the landing pad should be optimized out.
3131
// See https://github.com/rust-lang/rust/issues/87055
3232
// CHECK-LABEL: @check_eliminate_noop_drop
33-
// CHECK: start:
34-
// CHECK-NEXT: call void %g()
33+
// CHECK: call void %g()
3534
// CHECK-NEXT: ret void
3635
#[no_mangle]
3736
pub fn check_eliminate_noop_drop(g: fn()) {

0 commit comments

Comments
 (0)