]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/read_immutable_static.rs
Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup
[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 }