We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a0db6c commit 6bd68fcCopy full SHA for 6bd68fc
tests/mir-opt/dest-prop/branch.rs
@@ -1,4 +1,3 @@
1
-// skip-filecheck
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
//! Tests that assignment in both branches of an `if` are eliminated.
4
//@ unit-test: DestinationPropagation
@@ -12,6 +11,10 @@ fn cond() -> bool {
12
11
13
// EMIT_MIR branch.foo.DestinationPropagation.diff
14
fn foo() -> i32 {
+ // CHECK-LABEL: fn foo(
15
+ // CHECK: debug y => [[y:_.*]];
16
+ // CHECK: [[y]] = val()
17
+ // CHECK-NOT: [[y]] = {{_.*}};
18
let x = val();
19
20
let y = if cond() {
0 commit comments