Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
mir-opt
/
const_prop
/
mult_by_zero.rs
blob: b8afaeef43fd7d27861afd362df7e15b13d0b8f4 [
file
] [
log
] [
blame
]
// unit-test: 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
);
}