summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-66397.rs
blob: 1b4aff43b5bf13df94c07141223f6043fc4c3621 (plain)
1
2
3
4
5
6
7
8
// 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];
}