1 // Test that we correctly generate StorageDead statements for while loop
2 // conditions on all branches
4 fn get_bool(c: bool) -> bool {
8 fn while_loop(c: bool) {
22 // START rustc.while_loop.PreCodegen.after.mir
27 // _2 = const get_bool(move _3) -> bb1;
31 // switchInt(_2) -> [false: bb6, otherwise: bb2];
37 // _4 = const get_bool(move _5) -> bb3;
41 // switchInt(_4) -> [false: bb4, otherwise: bb5];
56 // END rustc.while_loop.PreCodegen.after.mir