summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/mult_by_zero.rs
blob: 7bd30975a738c0e05cf5087b19f6c0f509a5c06e (plain)
1
2
3
4
5
6
7
8
9
10
// unit-test: ConstProp

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

fn main() {
    test(10);
}