summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/repeat.rs
blob: 2f3b7d2c502163bb8f2ea9e83ffe0e84ccd36b87 (plain)
1
2
3
4
5
6
7
8
// ignore-wasm32 compiled with panic=abort by default
// compile-flags: -O

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