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

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

13 lines
418 B
Rust
Raw Normal View History

// build-fail
2019-08-06 13:23:32 -05:00
// ignore-32bit
2019-08-04 23:18:05 -05:00
// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
2020-02-18 15:49:47 -06:00
#![allow(arithmetic_overflow)]
2019-08-04 23:18:05 -05:00
fn main() {
2019-08-06 13:23:32 -05:00
let _fat: [u8; (1<<61)+(1<<31)] = //~ ERROR too big for the current architecture
[0; (1u64<<61) as usize +(1u64<<31) as usize];
2019-08-04 23:18:05 -05:00
}