summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/const_prop/mult_by_zero.rs
blob: b0ecdf1818e4d365f13ed10fab76895fe2b746b8 (plain)
1
2
3
4
5
6
7
8
9
10
// compile-flags: -O -Zmir-opt-level=4

// EMIT_MIR mult_by_zero.test.ConstProp.diff
fn test(x : i32) -> i32 {
  x * 0
}

fn main() {
    test(10);
}