rust/tests/mir-opt/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
153 B
Rust
Raw Normal View History

// skip-filecheck
2023-04-23 20:30:02 +08:00
// unit-test: ConstProp
2020-07-28 03:22:43 +08:00
// EMIT_MIR mult_by_zero.test.ConstProp.diff
fn test(x : i32) -> i32 {
x * 0
}
fn main() {
test(10);
}