Skip to content

Commit

Permalink
Add MaybeUninit memset test
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
  • Loading branch information
SUPERCILEX committed Aug 25, 2022
1 parent 0b71ffc commit 8c62cc2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/codegen/issue-96274.rs
Original file line number Diff line number Diff line change
@@ -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]
}

0 comments on commit 8c62cc2

Please sign in to comment.