rust/tests/ui/consts/issue-66397.rs
2023-01-11 09:32:08 +00:00

9 lines
186 B
Rust

// check-pass
// only-x86_64
// Checks that the compiler does not actually try to allocate 4 TB during compilation and OOM crash.
fn main() {
[0; 4 * 1024 * 1024 * 1024 * 1024];
}