]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/switch_int.rs
Rollup merge of #107770 - notriddle:notriddle/br2nl, r=GuillaumeGomez
[rust.git] / tests / mir-opt / const_prop / switch_int.rs
1 #[inline(never)]
2 fn foo(_: i32) { }
3
4 // EMIT_MIR switch_int.main.ConstProp.diff
5 // EMIT_MIR switch_int.main.SimplifyConstCondition-after-const-prop.diff
6 fn main() {
7     match 1 {
8         1 => foo(0),
9         _ => foo(-1),
10     }
11 }