We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc2c16 commit 7bfdb60Copy full SHA for 7bfdb60
1 file changed
tests/ui/codegen/huge-stacks.rs
@@ -5,6 +5,7 @@
5
//@ min-llvm-version: 22
6
7
// Regression test for https://github.com/rust-lang/rust/issues/83060
8
+// Verifies a program is not miscompiled if it includes a 4GB array on the stack
9
10
fn func() {
11
const CAP: usize = std::u32::MAX as usize;
@@ -17,7 +18,7 @@ fn main() {
17
18
std::thread::Builder::new()
19
.stack_size(5 * 1024 * 1024 * 1024)
20
.spawn(func)
- .unwrap()
21
+ .expect("huge-stacks.rs requires 5GB RAM to run")
22
.join()
23
.unwrap();
24
}
0 commit comments