]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/read_immutable_static.rs
Rollup merge of #107770 - notriddle:notriddle/br2nl, r=GuillaumeGomez
[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 }