about summary refs log tree commit diff
path: root/tests/mir-opt/pre-codegen/matchbr.rs
blob: 1822739da2c7e5237f90d7f7d150cb6fbf2fc42b (plain)
1
2
3
4
5
6
7
8
9
10
#![crate_type = "lib"]

// EMIT_MIR matchbr.match1.PreCodegen.after.mir
pub fn match1(c: bool, v1: i32, v2: i32) -> i32 {
    // CHECK-LABEL: fn match1(
    // CHECK: bb0:
    // CHECK-NEXT: _0 = Sub
    // CHECK-NEXT: return;
    if c { v1 - v2 } else { v1 - v2 }
}