Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
mir-opt
/
dataflow-const-prop
/
if.rs
blob: 72aabbccf56c8ece8760848a3d81883be6914ea7 [
file
] [
log
] [
blame
]
// skip-filecheck
// 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
;
}