summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/large_array_index.rs
blob: 48d134376db62653edb63f3d55a29b59bb7657ca (plain)
1
2
3
4
5
6
7
// EMIT_MIR_FOR_EACH_BIT_WIDTH

// EMIT_MIR large_array_index.main.ConstProp.diff
fn main() {
    // check that we don't propagate this, because it's too large
    let x: u8 = [0_u8; 5000][2];
}