]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-66342.rs
Only run tests on x86_64
[rust.git] / src / test / ui / consts / issue-66342.rs
1 // check-pass
2 // only-x86_64
3
4 // Checks that the compiler does not actually try to allocate 4 TB during compilation and OOM crash.
5
6 fn foo() -> [u8; 4 * 1024 * 1024 * 1024 * 1024] {
7     unimplemented!()
8 }
9
10 fn main() {
11     foo();
12 }