summary refs log tree commit diff
path: root/src/test/mir-opt/const_prop/read_immutable_static.rs
blob: 9635f7050a687b89543bf4616d429d8a9521dc4f (plain)
1
2
3
4
5
6
7
8
// compile-flags: -O

static FOO: u8 = 2;

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