rust/tests/ui/consts/issue-66397.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
186 B
Rust
Raw Normal View History

2019-11-14 19:48:42 -06:00
// check-pass
// only-x86_64
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.
fn main() {
[0; 4 * 1024 * 1024 * 1024 * 1024];
}