summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/derefer_terminator_test.rs
blob: 787b14ae735d5c5fa89dff6fed1f22d982204046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// EMIT_MIR derefer_terminator_test.main.Derefer.diff
// ignore-wasm32

fn main() {
    let b = foo();
    let d = foo();
    match ****(&&&&b) {
        true => {let x = 5;},
        false => {}
    }
    let y = 42;
}

fn foo() -> bool {
    true
}