rust/tests/mir-opt/const_prop/mult_by_zero.rs

13 lines
191 B
Rust
Raw Normal View History

2023-04-23 07:30:02 -05:00
// unit-test: ConstProp
2020-07-27 14:22:43 -05:00
// EMIT_MIR mult_by_zero.test.ConstProp.diff
2023-12-02 14:39:26 -06:00
fn test(x: i32) -> i32 {
// CHECK: fn test(
// CHECK: _0 = const 0_i32;
x * 0
}
fn main() {
test(10);
}