summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/while_let_loops.rs
blob: f320a218c852c345252882e6950dbf5cfb869a9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// EMIT_MIR while_let_loops.change_loop_body.ConstProp.diff
// EMIT_MIR while_let_loops.change_loop_body.PreCodegen.after.mir
// EMIT_MIR_FOR_EACH_BIT_WIDTH

pub fn change_loop_body() {
    let mut _x = 0;
    while let Some(0u32) = None {
        _x = 1;
        break;
    }
}

fn main() {
    change_loop_body();
}