]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/read_immutable_static.rs
Auto merge of #107000 - GuillaumeGomez:fix-items-in-doc-hidden-block, r=notriddle...
[rust.git] / tests / mir-opt / const_prop / read_immutable_static.rs
1 // unit-test
2 // compile-flags: -O
3
4 static FOO: u8 = 2;
5
6 // EMIT_MIR read_immutable_static.main.ConstProp.diff
7 fn main() {
8     let x = FOO + FOO;
9 }