about summary refs log tree commit diff
path: root/tests/mir-opt/const_prop/large_array_index.rs
blob: afba73f6a17f7e2ba8fdab35ff02c8db77dacd79 (plain)
1
2
3
4
5
6
7
8
9
10
// skip-filecheck
//@ test-mir-pass: GVN
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// EMIT_MIR_FOR_EACH_BIT_WIDTH

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