Sign in
rust
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
mir-opt
/
dataflow-const-prop
/
mult_by_zero.rs
blob: 26f79c8c0e48d74886c9a0b0115921418ca51b00 [
file
] [
log
] [
blame
]
//@ test-mir-pass: 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
);
}