rust/tests/mir-opt/const_prop/read_immutable_static.rs
2023-01-11 09:32:08 +00:00

10 lines
147 B
Rust

// unit-test
// compile-flags: -O
static FOO: u8 = 2;
// EMIT_MIR read_immutable_static.main.ConstProp.diff
fn main() {
let x = FOO + FOO;
}