2019-11-13 18:19:25 -06:00
|
|
|
// check-pass
|
2019-11-14 19:48:42 -06:00
|
|
|
// only-x86_64
|
2019-11-13 18:19:25 -06:00
|
|
|
|
2019-11-14 05:17:41 -06:00
|
|
|
// Checks that the compiler does not actually try to allocate 4 TB during compilation and OOM crash.
|
|
|
|
|
2019-11-13 18:19:25 -06:00
|
|
|
fn foo() -> [u8; 4 * 1024 * 1024 * 1024 * 1024] {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo();
|
|
|
|
}
|