Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
mir-opt
/
const_prop
/
mutable_variable_no_prop.rs
blob: a7aeeccd8611cbd2f255e7efb61bf4f5359d6354 [
file
] [
log
] [
blame
]
// skip-filecheck
// unit-test: ConstProp
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
;
}