Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
mir-opt
/
const_prop
/
read_immutable_static.rs
blob: a3d8fee65d745d9a5343158ebe357eafa4ced5e7 [
file
] [
log
] [
blame
]
// unit-test: GVN
static
FOO
:
u8
=
2
;
// EMIT_MIR read_immutable_static.main.GVN.diff
fn
main
()
{
// CHECK-LABEL: fn main(
// CHECK: debug x => [[x:_.*]];
// CHECK: [[x]] = const 4_u8;
let
x
=
FOO
+
FOO
;
}