summary refs log tree commit diff
path: root/src/test/ui/issues/issue-15919.rs
blob: 19ecf2f657e0a2946338178ebfa5a3ae2caa695e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// error-pattern: too big for the current architecture
// normalize-stderr-test "\[usize; \d+\]" -> "[usize; N]"

#[cfg(target_pointer_width = "32")]
fn main() {
    let x = [0usize; 0xffff_ffff];
}

#[cfg(target_pointer_width = "64")]
fn main() {
    let x = [0usize; 0xffff_ffff_ffff_ffff];
}