Skip to content

Commit dd2d390

Browse files
committed
Add FileCheck to issue_107511.rs
1 parent 76dc555 commit dd2d390

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

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

54
// EMIT_MIR issue_107511.main.CopyProp.diff
65
fn main() {
6+
// CHECK-LABEL: fn main(
7+
// CHECK: debug i => [[i:_.*]];
8+
// CHECK-NOT: StorageLive([[i]]);
9+
// CHECK-NOT: StorageDead([[i]]);
710
let mut sum = 0;
811
let a = [0, 10, 20, 30];
912

0 commit comments

Comments
 (0)