3 #![allow(unused_must_use)]
4 // Makes sure that zero-initializing large types is reasonably fast,
5 // Doing it incorrectly causes massive slowdown in LLVM during
8 // pretty-expanded FIXME #23616
9 // ignore-emscripten no threads support
11 #![feature(intrinsics)]
15 extern "rust-intrinsic" {
16 pub fn init<T>() -> T;
19 const SIZE: usize = 1024 * 1024;
22 // do the test in a new thread to avoid (spurious?) stack overflows
24 let _memory: [u8; SIZE] = unsafe { init() };