summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/repeat.rs
blob: 36d9b9fc62d56e59648ccb53dfb097207e58fc46 (plain)
1
2
3
4
5
6
7
// compile-flags: -O

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