We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1349c84 commit e555854Copy full SHA for e555854
src/test/ui/huge-array-simple.rs
@@ -1,11 +1,16 @@
1
-// FIXME (#23926): the error output is not consistent between a
2
-// self-hosted and a cross-compiled setup. Skipping for now.
3
-
4
-// ignore-test FIXME(#23926)
+// error-pattern: too big for the current architecture
5
+// normalize-stderr-test "; \d+]" -> "; N]"
6
#![allow(exceeding_bitshifts)]
7
+#[cfg(target_pointer_width = "64")]
8
fn main() {
9
let _fat : [u8; (1<<61)+(1<<31)] =
10
[0; (1u64<<61) as usize +(1u64<<31) as usize];
11
}
+
12
+#[cfg(target_pointer_width = "32")]
13
+fn main() {
14
+ let _fat : [u8; (1<<31)+(1<<15)] =
15
+ [0; (1u32<<31) as usize +(1u32<<15) as usize];
16
+}
src/test/ui/huge-array-simple.stderr
@@ -0,0 +1,4 @@
+error: the type `[u8; N]` is too big for the current architecture
+error: aborting due to previous error
0 commit comments