summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/issue-38669.rs
blob: db3f89472c982378b4d1ab7859c3c5c40484b9d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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;
    }
}