// skip-filecheck// EMIT_MIR_FOR_EACH_PANIC_STRATEGY//! Tests that assignment in both branches of an `if` are eliminated.// unit-test: DestinationPropagationfnval()-> i32{1}fncond()-> bool{true}// EMIT_MIR branch.foo.DestinationPropagation.difffnfoo()-> i32{letx=val();lety=ifcond(){x}else{val();x};y}fnmain(){foo();}