rust/tests/mir-opt/dataflow-const-prop/issue_81605.rs

11 lines
159 B
Rust
Raw Normal View History

2022-08-29 17:57:49 -05:00
// unit-test: DataflowConstProp
// EMIT_MIR issue_81605.f.DataflowConstProp.diff
fn f() -> usize {
1 + if true { 1 } else { 2 }
}
fn main() {
f();
}