rust/tests/mir-opt/dataflow-const-prop/issue_81605.rs
2023-10-19 15:51:52 +00:00

12 lines
177 B
Rust

// skip-filecheck
// unit-test: DataflowConstProp
// EMIT_MIR issue_81605.f.DataflowConstProp.diff
fn f() -> usize {
1 + if true { 1 } else { 2 }
}
fn main() {
f();
}