]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/const_prop/switch_int.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / mir-opt / const_prop / switch_int.rs
1 #[inline(never)]
2 fn foo(_: i32) { }
3
4 // EMIT_MIR rustc.main.ConstProp.diff
5 // EMIT_MIR rustc.main.SimplifyBranches-after-const-prop.diff
6 fn main() {
7 match 1 {
8 1 => foo(0),
9 _ => foo(-1),
10 }
11 }