]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/read_immutable_static.rs
Rollup merge of #74650 - estebank:ambiguous-expr-binop, r=eddyb
[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 }