rust/src/test/mir-opt/const_prop/large_array_index.rs

8 lines
183 B
Rust
Raw Normal View History

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