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

12 lines
404 B
Rust
Raw Normal View History

2019-08-06 11:23:32 -07:00
// ignore-64bit
2019-08-04 21:18:05 -07: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 11:23:32 -07: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-04 21:18:05 -07:00
}