rust/tests/mir-opt/dataflow-const-prop/mult_by_zero.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
169 B
Rust
Raw Normal View History

// skip-filecheck
2023-04-15 12:00:43 -05:00
// unit-test: DataflowConstProp
// EMIT_MIR mult_by_zero.test.DataflowConstProp.diff
fn test(x : i32) -> i32 {
x * 0
}
fn main() {
test(10);
}