Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
mir-opt
/
const_prop
/
mutable_variable_no_prop.rs
blob: b69ec931a6311360a097698f26319e9e7b57a899 [
file
] [
log
] [
blame
]
// unit-test
// compile-flags: -O
static
mut
STATIC
:
u32
=
0x42424242
;
// EMIT_MIR mutable_variable_no_prop.main.ConstProp.diff
fn
main
()
{
let
mut
x
=
42
;
unsafe
{
x
=
STATIC
;
}
let
y
=
x
;
}