Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
mir-opt
/
const_prop
/
read_immutable_static.rs
blob: ec2dbf6485a86e4f35f58aefd5f98d3e6654fff7 [
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
;
}