Skip to content

Commit 109870d

Browse files
committed
Add FileCheck to dead_stores_79191.rs
1 parent ff260c8 commit 109870d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/mir-opt/copy-prop/dead_stores_79191.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// skip-filecheck
21
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
32
//@ test-mir-pass: CopyProp
43

@@ -8,6 +7,14 @@ fn id<T>(x: T) -> T {
87

98
// EMIT_MIR dead_stores_79191.f.CopyProp.after.mir
109
fn f(mut a: usize) -> usize {
10+
// CHECK-LABEL: fn f(
11+
// CHECK: debug a => [[a:_.*]];
12+
// CHECK: debug b => [[b:_.*]];
13+
// CHECK: [[b]] = copy [[a]];
14+
// CHECK: [[a]] = const 5_usize;
15+
// CHECK: [[a]] = copy [[b]];
16+
// CHECK: [[c:_.*]] = copy [[a]]
17+
// CHECK: id::<usize>(move [[c]])
1118
let b = a;
1219
a = 5;
1320
a = b;

0 commit comments

Comments
 (0)