// Copyright 2017 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. // check that we don't StorageDead booleans before they are used fn main() { let mut should_break = false; loop { if should_break { break; } should_break = true; } } // END RUST SOURCE // START rustc.main.SimplifyCfg-initial.after.mir // bb0: { // StorageLive(_1); // _1 = const false; // goto -> bb1; // } // // bb1: { // StorageLive(_4); // _4 = _1; // switchInt(_4) -> [0u8: bb3, otherwise: bb2]; // } // // bb2: { // _0 = (); // StorageDead(_4); // StorageDead(_1); // return; // } // // bb3: { // _3 = (); // StorageDead(_4); // _1 = const true; // _2 = (); // goto -> bb1; // } // END rustc.main.SimplifyCfg-initial.after.mir