summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/read_immutable_static.rs
blob: 4f7afe6cad4a19d5e08ad465ddce6ee0ea57f52c (plain)
1
2
3
4
5
6
7
8
9
// unit-test
// compile-flags: -O

static FOO: u8 = 2;

// EMIT_MIR read_immutable_static.main.ConstProp.diff
fn main() {
    let x = FOO + FOO;
}