]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_allocation2.rs
Rollup merge of #99864 - klensy:bootstrap-art-dupe, r=jyn514
[rust.git] / src / test / mir-opt / const_allocation2.rs
1 // ignore-endian-big
2 // EMIT_MIR_FOR_EACH_BIT_WIDTH
3 // EMIT_MIR const_allocation2.main.ConstProp.after.mir
4 fn main() {
5     FOO;
6 }
7
8 const BAR: [u8; 4] = [42, 69, 21, 111];
9
10 static FOO: &[(Option<i32>, &[&u8])] =
11     &[(None, &[]), (None, &[&5, &6]), (Some(42), &[&BAR[3], &42, &BAR[2]])];