summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/repeat.rs
blob: 9c11dbc5b669431d84db31e870d133d6346afab0 (plain)
1
2
3
4
5
6
7
8
9
// unit-test: ConstProp
// ignore-wasm32 compiled with panic=abort by default
// compile-flags: -Zmir-enable-passes=+NormalizeArrayLen
// EMIT_MIR_FOR_EACH_BIT_WIDTH

// EMIT_MIR repeat.main.ConstProp.diff
fn main() {
    let x: u32 = [42; 8][2] + 0;
}