Skip to content

Commit

Permalink
Rollup merge of #98304 - SUPERCILEX:maybeuninit, r=nikic
Browse files Browse the repository at this point in the history
Add MaybeUninit memset test

Closes #96274
  • Loading branch information
Dylan-DPC authored Aug 29, 2022
2 parents 7a42ca9 + 8c62cc2 commit 4cac0bf
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 4cac0bf

Please sign in to comment.