os-rust/tests/mir-opt/const_prop/large_array_index.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
262 B
Rust
Raw Normal View History

// skip-filecheck
2023-09-20 21:43:33 +00:00
//@ unit-test: GVN
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// EMIT_MIR_FOR_EACH_BIT_WIDTH
2023-09-20 21:43:33 +00:00
// 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];
}