Skip to content

Commit 2dd949e

Browse files
committed
Run filecheck on dest-prop/branch.rs
1 parent cdb775c commit 2dd949e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

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

1312
// EMIT_MIR branch.foo.DestinationPropagation.diff
1413
fn foo() -> i32 {
14+
// CHECK-LABEL: fn foo
15+
// CHECK-NOT: {{_.*}} = {{_.*}}
1516
let x = val();
1617

1718
let y = if cond() {

0 commit comments

Comments
 (0)