Skip to content

Commit fc83427

Browse files
committed
Fix test
1 parent 2423483 commit fc83427

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/test/mir-opt/inline/asm-unwind.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Tests inlining of `may_unwind` inline assembly.
22
//
33
// ignore-wasm32-bare compiled with panic=abort by default
4+
// needs-asm-support
45
#![feature(asm_unwind)]
56

67
struct D;

src/test/mir-opt/inline/asm_unwind.main.Inline.diff

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
fn main() -> () {
55
let mut _0: (); // return place in scope 0 at $DIR/asm-unwind.rs:+0:15: +0:15
66
let _1: (); // in scope 0 at $DIR/asm-unwind.rs:+1:5: +1:10
7-
+ scope 1 (inlined foo) { // at $DIR/asm-unwind.rs:20:5: 20:10
8-
+ let _2: D; // in scope 1 at $DIR/asm-unwind.rs:14:9: 14:11
7+
+ scope 1 (inlined foo) { // at $DIR/asm-unwind.rs:21:5: 21:10
8+
+ let _2: D; // in scope 1 at $DIR/asm-unwind.rs:15:9: 15:11
99
+ scope 2 {
10-
+ debug _d => _2; // in scope 2 at $DIR/asm-unwind.rs:14:9: 14:11
10+
+ debug _d => _2; // in scope 2 at $DIR/asm-unwind.rs:15:9: 15:11
1111
+ scope 3 {
1212
+ }
1313
+ }
@@ -17,29 +17,29 @@
1717
StorageLive(_1); // scope 0 at $DIR/asm-unwind.rs:+1:5: +1:10
1818
- _1 = foo() -> bb1; // scope 0 at $DIR/asm-unwind.rs:+1:5: +1:10
1919
- // mir::Constant
20-
- // + span: $DIR/asm-unwind.rs:20:5: 20:8
20+
- // + span: $DIR/asm-unwind.rs:21:5: 21:8
2121
- // + literal: Const { ty: fn() {foo}, val: Value(<ZST>) }
22-
+ StorageLive(_2); // scope 1 at $DIR/asm-unwind.rs:14:9: 14:11
23-
+ asm!("", options(MAY_UNWIND)) -> [return: bb1, unwind: bb3]; // scope 3 at $DIR/asm-unwind.rs:15:14: 15:54
22+
+ StorageLive(_2); // scope 1 at $DIR/asm-unwind.rs:15:9: 15:11
23+
+ asm!("", options(MAY_UNWIND)) -> [return: bb1, unwind: bb3]; // scope 3 at $DIR/asm-unwind.rs:16:14: 16:54
2424
}
2525

2626
bb1: {
27-
+ drop(_2) -> bb2; // scope 1 at $DIR/asm-unwind.rs:16:1: 16:2
27+
+ drop(_2) -> bb2; // scope 1 at $DIR/asm-unwind.rs:17:1: 17:2
2828
+ }
2929
+
3030
+ bb2: {
31-
+ StorageDead(_2); // scope 1 at $DIR/asm-unwind.rs:16:1: 16:2
31+
+ StorageDead(_2); // scope 1 at $DIR/asm-unwind.rs:17:1: 17:2
3232
StorageDead(_1); // scope 0 at $DIR/asm-unwind.rs:+1:10: +1:11
3333
_0 = const (); // scope 0 at $DIR/asm-unwind.rs:+0:15: +2:2
3434
return; // scope 0 at $DIR/asm-unwind.rs:+2:2: +2:2
3535
+ }
3636
+
3737
+ bb3 (cleanup): {
38-
+ drop(_2) -> bb4; // scope 1 at $DIR/asm-unwind.rs:16:1: 16:2
38+
+ drop(_2) -> bb4; // scope 1 at $DIR/asm-unwind.rs:17:1: 17:2
3939
+ }
4040
+
4141
+ bb4 (cleanup): {
42-
+ resume; // scope 1 at $DIR/asm-unwind.rs:13:1: 16:2
42+
+ resume; // scope 1 at $DIR/asm-unwind.rs:14:1: 17:2
4343
}
4444
}
4545

0 commit comments

Comments
 (0)