mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
13 lines
207 B
Rust
13 lines
207 B
Rust
//@ unit-test: DataflowConstProp
|
|
|
|
// EMIT_MIR mult_by_zero.test.DataflowConstProp.diff
|
|
// CHECK-LABEL: fn test(
|
|
fn test(x : i32) -> i32 {
|
|
x * 0
|
|
// CHECK: _0 = const 0_i32;
|
|
}
|
|
|
|
fn main() {
|
|
test(10);
|
|
}
|