rust/tests/mir-opt/const_prop/read_immutable_static.rs
2023-10-19 15:51:52 +00:00

10 lines
155 B
Rust

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