Rollup merge of #98304 - SUPERCILEX:maybeuninit, r=nikic

Add MaybeUninit memset test

Closes #96274
This commit is contained in:
Dylan DPC 2022-08-29 16:49:37 +05:30 committed by GitHub
commit 4cac0bf662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,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]
}