File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 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
52
3+ // normalize-stderr-test "; \d+]" -> "; N]"
64#![ allow( exceeding_bitshifts) ]
75
6+ #[ cfg( target_pointer_width = "64" ) ]
87fn main ( ) {
98 let _fat : [ u8 ; ( 1 <<61 ) +( 1 <<31 ) ] =
109 [ 0 ; ( 1u64 <<61 ) as usize +( 1u64 <<31 ) as usize ] ;
1110}
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