]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/read_immutable_static.rs
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
[rust.git] / src / test / mir-opt / const_prop / read_immutable_static.rs
1 // compile-flags: -O
2
3 static FOO: u8 = 2;
4
5 // EMIT_MIR read_immutable_static.main.ConstProp.diff
6 fn main() {
7     let x = FOO + FOO;
8 }