summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/issue_38669.rs
blob: 9da4c89bb12184970eff177dc6ced0b9dd727e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// skip-filecheck
// check that we don't StorageDead booleans before they are used

// EMIT_MIR issue_38669.main.SimplifyCfg-initial.after.mir
fn main() {
    let mut should_break = false;
    loop {
        if should_break {
            break;
        }
        should_break = true;
    }
}