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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
177 B
Rust
Raw Normal View History

// skip-filecheck
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();
}