File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 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)
1
+ // error-pattern: too big for the current architecture
5
2
3
+ // normalize-stderr-test "; \d+]" -> "; N]"
6
4
#![ allow( exceeding_bitshifts) ]
7
5
6
+ #[ cfg( target_pointer_width = "64" ) ]
8
7
fn main ( ) {
9
8
let _fat : [ u8 ; ( 1 <<61 ) +( 1 <<31 ) ] =
10
9
[ 0 ; ( 1u64 <<61 ) as usize +( 1u64 <<31 ) as usize ] ;
11
10
}
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
+ }
Original file line number Diff line number Diff line change
1
+ error: the type `[u8; N]` is too big for the current architecture
2
+
3
+ error: aborting due to previous error
4
+
You can’t perform that action at this time.
0 commit comments