about summary refs log tree commit diff
path: root/src/test/codegen/issue-96274.rs
blob: e3abf73096125afca17155a4378380540e816c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
// min-llvm-version: 15.0
// compile-flags: -O

#![crate_type = "lib"]

use std::mem::MaybeUninit;

pub fn maybe_uninit() -> [MaybeUninit<u8>; 3000] {
    // CHECK-NOT: memset
    [MaybeUninit::uninit(); 3000]
}