Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
mir-opt
/
dataflow-const-prop
/
if.rs
blob: 34fc35790c17f199cfb86d9c448da9086fae507a [
file
] [
log
] [
blame
]
// unit-test: DataflowConstProp
// EMIT_MIR if.main.DataflowConstProp.diff
fn
main
()
{
let
a
=
1
;
let
b
=
if
a
==
1
{
2
}
else
{
3
};
let
c
=
b
+
1
;
let
d
=
if
a
==
1
{
a
}
else
{
a
+
1
};
let
e
=
d
+
1
;
}