mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 19:43:43 +00:00
12 lines
163 B
Rust
12 lines
163 B
Rust
// unit-test
|
|
// compile-flags: -O -Zmir-opt-level=4
|
|
|
|
// EMIT_MIR mult_by_zero.test.ConstProp.diff
|
|
fn test(x : i32) -> i32 {
|
|
x * 0
|
|
}
|
|
|
|
fn main() {
|
|
test(10);
|
|
}
|