summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/multiple_return_terminators.rs
blob: a2b902d148363c6d2be89a9ead08304c4559becd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// compile-flags: -Z mir-opt-level=4
// EMIT_MIR multiple_return_terminators.test.MultipleReturnTerminators.diff

fn test(x: bool) {
    if x {
        // test
    } else {
        // test
    }
}

fn main() {
    test(true)
}