rust/src/test/ui/huge-array-simple-64.rs

12 lines
404 B
Rust
Raw Normal View History

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" -> ""
#![allow(exceeding_bitshifts)]
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
}