mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
13 lines
233 B
Rust
13 lines
233 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 foo() -> [u8; 4 * 1024 * 1024 * 1024 * 1024] {
|
|
unimplemented!()
|
|
}
|
|
|
|
fn main() {
|
|
foo();
|
|
}
|