blob: 8624899a0abf25f34a4fc69ab298011ec8792668 [file] [log] [blame]
fn main() {
match { let x = false; x } {
true => println!("hello world!"),
false => {},
}
}
// END RUST SOURCE
// START rustc.main.SimplifyBranches-after-copy-prop.before.mir
// bb0: {
// ...
// switchInt(const false) -> [false: bb1, otherwise: bb2];
// }
// bb1: {
// END rustc.main.SimplifyBranches-after-copy-prop.before.mir
// START rustc.main.SimplifyBranches-after-copy-prop.after.mir
// bb0: {
// ...
// goto -> bb1;
// }
// bb1: {
// END rustc.main.SimplifyBranches-after-copy-prop.after.mir