summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/dataflow-const-prop/mult_by_zero.rs
blob: dbea1480445f7ea2caf29d0e8b497c1c30f87694 (plain)
1
2
3
4
5
6
7
8
9
10
// unit-test: DataflowConstProp

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

fn main() {
    test(10);
}