]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/issue_38669.rs
Auto merge of #107618 - chriswailes:linker-arg, r=albertlarsan68
[rust.git] / tests / mir-opt / issue_38669.rs
1 // check that we don't StorageDead booleans before they are used
2
3 // EMIT_MIR issue_38669.main.SimplifyCfg-initial.after.mir
4 fn main() {
5     let mut should_break = false;
6     loop {
7         if should_break {
8             break;
9         }
10         should_break = true;
11     }
12 }