about summary refs log tree commit diff
path: root/tests/mir-opt/dataflow-const-prop/mult_by_zero.rs
blob: 16a45c8e9fb5943d9f6032a8636c9daa9bf56d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
// skip-filecheck
// unit-test: DataflowConstProp

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

fn main() {
    test(10);
}