rust/tests/mir-opt/dataflow-const-prop/mult_by_zero.rs
2023-09-06 15:57:50 +00:00

11 lines
151 B
Rust

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