Add MaybeUninit memset test

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
This commit is contained in:
Alex Saveau 2022-08-25 00:53:31 -04:00
parent 0b71ffca18
commit 8c62cc2064
No known key found for this signature in database
GPG Key ID: 3F8D5B16EB169D48

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]
}