mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-08 22:06:22 +00:00
Rollup merge of #98304 - SUPERCILEX:maybeuninit, r=nikic
Add MaybeUninit memset test Closes #96274
This commit is contained in:
commit
4cac0bf662
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