Skip to content

Commit e36689a

Browse files
committed
Add FileCheck to branch.rs
1 parent a8664a1 commit e36689a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/mir-opt/copy-prop/branch.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
//! Tests that we bail out when there are multiple assignments to the same local.
43
//@ test-mir-pass: CopyProp
@@ -12,6 +11,14 @@ fn cond() -> bool {
1211

1312
// EMIT_MIR branch.foo.CopyProp.diff
1413
fn foo() -> i32 {
14+
// CHECK-LABEL: fn foo(
15+
// CHECK: debug x => [[x:_.*]];
16+
// CHECK: debug y => [[y:_.*]];
17+
// CHECK: bb3: {
18+
// CHECK: [[y]] = copy [[x]];
19+
// CHECK: bb5: {
20+
// CHECK: [[y]] = copy [[x]];
21+
// CHECK: _0 = copy [[y]];
1522
let x = val();
1623

1724
let y = if cond() {

0 commit comments

Comments
 (0)