rust/tests/mir-opt/const_prop/slice_len.rs
2023-01-11 09:32:08 +00:00

8 lines
194 B
Rust

// compile-flags: -Zmir-enable-passes=-SimplifyLocals-before-const-prop
// EMIT_MIR_FOR_EACH_BIT_WIDTH
// EMIT_MIR slice_len.main.ConstProp.diff
fn main() {
(&[1u32, 2, 3] as &[u32])[1];
}