rust/tests/mir-opt/const_prop/switch_int.rs

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

13 lines
284 B
Rust
Raw Normal View History

2023-04-05 03:44:20 -05:00
// ignore-wasm32 compiled with panic=abort by default
#[inline(never)]
fn foo(_: i32) { }
2020-07-27 14:22:43 -05:00
// EMIT_MIR switch_int.main.ConstProp.diff
2021-11-30 20:54:37 -06:00
// EMIT_MIR switch_int.main.SimplifyConstCondition-after-const-prop.diff
fn main() {
match 1 {
1 => foo(0),
_ => foo(-1),
}
}