mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 00:56:14 +00:00
11 lines
135 B
Rust
11 lines
135 B
Rust
// unit-test: ConstProp
|
|
|
|
// EMIT_MIR mult_by_zero.test.ConstProp.diff
|
|
fn test(x : i32) -> i32 {
|
|
x * 0
|
|
}
|
|
|
|
fn main() {
|
|
test(10);
|
|
}
|