rust/tests/ui/limits/huge-array-simple-32.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

2019-08-06 18:23:32 +00:00
// ignore-64bit
2019-12-21 21:33:36 +00:00
// build-fail
2019-08-05 04:18:05 +00: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-19 19:12:01 +00:00
#![allow(arithmetic_overflow)]
2019-08-05 04:18:05 +00:00
fn main() {
2019-08-06 18:23:32 +00:00
let _fat: [u8; (1<<31)+(1<<15)] = //~ ERROR too big for the current architecture
[0; (1u32<<31) as usize +(1u32<<15) as usize];
2019-08-05 04:18:05 +00:00
}