rust/tests/mir-opt/multiple_return_terminators.rs

16 lines
246 B
Rust

// skip-filecheck
//@ compile-flags: -Z mir-opt-level=4
// EMIT_MIR multiple_return_terminators.test.MultipleReturnTerminators.diff
fn test(x: bool) {
if x {
// test
} else {
// test
}
}
fn main() {
test(true)
}