Add MaybeUninit memset test
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
This commit is contained in:
parent
0b71ffca18
commit
8c62cc2064
11
src/test/codegen/issue-96274.rs
Normal file
11
src/test/codegen/issue-96274.rs
Normal 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]
|
||||
}
|
Loading…
Reference in New Issue
Block a user