Run filecheck on dest-prop/branch.rs

This commit is contained in:
CastilloDel 2024-04-14 11:35:01 +02:00
parent 3a0db6c152
commit 6bd68fcceb

View file

@ -1,4 +1,3 @@
// skip-filecheck
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
//! Tests that assignment in both branches of an `if` are eliminated.
//@ unit-test: DestinationPropagation
@ -12,6 +11,10 @@ fn cond() -> bool {
// EMIT_MIR branch.foo.DestinationPropagation.diff
fn foo() -> i32 {
// CHECK-LABEL: fn foo(
// CHECK: debug y => [[y:_.*]];
// CHECK: [[y]] = val()
// CHECK-NOT: [[y]] = {{_.*}};
let x = val();
let y = if cond() {