mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
13 lines
184 B
Rust
13 lines
184 B
Rust
//@ test-mir-pass: GVN
|
|
|
|
// EMIT_MIR mult_by_zero.test.GVN.diff
|
|
fn test(x: i32) -> i32 {
|
|
// CHECK: fn test(
|
|
// CHECK: _0 = const 0_i32;
|
|
x * 0
|
|
}
|
|
|
|
fn main() {
|
|
test(10);
|
|
}
|