Skip to content

Commit 6bd68fc

Browse files
committed
Run filecheck on dest-prop/branch.rs
1 parent 3a0db6c commit 6bd68fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/mir-opt/dest-prop/branch.rs

+4-1
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 assignment in both branches of an `if` are eliminated.
43
//@ unit-test: DestinationPropagation
@@ -12,6 +11,10 @@ fn cond() -> bool {
1211

1312
// EMIT_MIR branch.foo.DestinationPropagation.diff
1413
fn foo() -> i32 {
14+
// CHECK-LABEL: fn foo(
15+
// CHECK: debug y => [[y:_.*]];
16+
// CHECK: [[y]] = val()
17+
// CHECK-NOT: [[y]] = {{_.*}};
1518
let x = val();
1619

1720
let y = if cond() {

0 commit comments

Comments
 (0)