-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #58648 - pnkfelix:issue-23926-update-tests, r=nikomat…
…sakis Update tests to account for cross-platform testing and miri. Fix #23926
- Loading branch information
Showing
4 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
// FIXME (#23926): the error output is not consistent between a | ||
// self-hosted and a cross-compiled setup. Skipping for now. | ||
|
||
// ignore-test FIXME(#23926) | ||
// error-pattern: too big for the current architecture | ||
|
||
// normalize-stderr-test "; \d+]" -> "; N]" | ||
#![allow(exceeding_bitshifts)] | ||
|
||
#[cfg(target_pointer_width = "64")] | ||
fn main() { | ||
let _fat : [u8; (1<<61)+(1<<31)] = | ||
[0; (1u64<<61) as usize +(1u64<<31) as usize]; | ||
} | ||
|
||
#[cfg(target_pointer_width = "32")] | ||
fn main() { | ||
let _fat : [u8; (1<<31)+(1<<15)] = | ||
[0; (1u32<<31) as usize +(1u32<<15) as usize]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
error: the type `[u8; N]` is too big for the current architecture | ||
|
||
error: aborting due to previous error | ||
|