about summary refs log tree commit diff
path: root/tests/mir-opt/const_prop/mult_by_zero.rs
blob: 7943c74c9ee7a780261541aad7a3df3c2ab5b350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ test-mir-pass: GVN

// EMIT_MIR mult_by_zero.test.GVN.diff
fn test(x: i32) -> i32 {
    // CHECK: fn test(
    // CHECK: _0 = const 0_i32;
    x * 0
}

fn main() {
    test(10);
}