Skip to content

Commit

Permalink
Respond to review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleywiser committed Nov 14, 2019
1 parent 92154d0 commit 0c52c3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/ui/consts/issue-66342.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// check-pass

// Checks that the compiler does not actually try to allocate 4 TB during compilation and OOM crash.

fn foo() -> [u8; 4 * 1024 * 1024 * 1024 * 1024] {
unimplemented!()
}
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/consts/issue-66397.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// build-pass

// Checks that the compiler does not actually try to allocate 4 TB during compilation and OOM crash.

fn main() {
[0; 4 * 1024 * 1024 * 1024 * 1024];
}

0 comments on commit 0c52c3e

Please sign in to comment.