]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/mult_by_zero.rs
Rollup merge of #107770 - notriddle:notriddle/br2nl, r=GuillaumeGomez
[rust.git] / tests / mir-opt / const_prop / mult_by_zero.rs
1 // unit-test
2 // compile-flags: -O -Zmir-opt-level=4
3
4 // EMIT_MIR mult_by_zero.test.ConstProp.diff
5 fn test(x : i32) -> i32 {
6   x * 0
7 }
8
9 fn main() {
10     test(10);
11 }