blob: 2ca3f4c2fec361791ef86bba634dc28445754f67 [file]
//@ memory-limit: 1G
// Compiler:
// An 8 MiB constant must compile within 1 GiB of address space. A backend that builds one rvalue
// per 8 bytes of a constant needs about 1.4 GiB for it and runs out of memory.
#![crate_type = "lib"]
const SIZE: usize = 8 * 1024 * 1024;
// Not zero, so that the bytes cannot be emitted as a zero-initialized global.
pub static BYTES: [u8; SIZE] = [1; SIZE];