summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/dataflow-const-prop/array_index.rs
blob: 3d420f930076d30bddd2f36c796b70da702330c8 (plain)
1
2
3
4
5
6
7
8
9
// skip-filecheck
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: DataflowConstProp
// EMIT_MIR_FOR_EACH_BIT_WIDTH

// EMIT_MIR array_index.main.DataflowConstProp.diff
fn main() {
    let x: u32 = [0, 1, 2, 3][2];
}