Files
rust/tests/ui/limits/huge-array-simple-64.rs

15 lines
515 B
Rust
Raw Normal View History

// FIXME(#61117): Remove revisions once x86_64-gnu-debug CI job sets rust.debuginfo-level-tests=2
// NOTE: The .stderr for both revisions shall be identical.
//@ revisions: no-debuginfo full-debuginfo
//@[no-debuginfo] compile-flags: -Cdebuginfo=0
//@[full-debuginfo] compile-flags: -Cdebuginfo=2
//@ build-fail
//@ ignore-32bit
2019-08-04 21:18:05 -07:00
2020-02-18 22:49:47 +01:00
#![allow(arithmetic_overflow)]
2019-08-04 21:18:05 -07:00
fn main() {
2024-09-20 00:39:10 -07:00
let _fat: [u8; (1<<61)+(1<<31)] = //~ ERROR too big for the target architecture
2019-08-06 11:23:32 -07:00
[0; (1u64<<61) as usize +(1u64<<31) as usize];
2019-08-04 21:18:05 -07:00
}