diff options
| author | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2013-01-18 22:36:43 +0100 |
|---|---|---|
| committer | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2013-01-18 22:36:43 +0100 |
| commit | d127ed53784bf8a6e376904af163b58a78179dd2 (patch) | |
| tree | 39ec2439f21f03055426a481f57e232365980f1d /test/fixedbugs/bug385_64.go | |
| parent | 41ec481a53b2592111e1278670b3361ef98c352d (diff) | |
| download | go-d127ed53784bf8a6e376904af163b58a78179dd2.tar.xz | |
cmd/gc, cmd/6g: fix error on large stacks.
Fixes #4666.
R=golang-dev, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/7141047
Diffstat (limited to 'test/fixedbugs/bug385_64.go')
| -rw-r--r-- | test/fixedbugs/bug385_64.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/fixedbugs/bug385_64.go b/test/fixedbugs/bug385_64.go index 8c7b9d5208..f8ccb42a9b 100644 --- a/test/fixedbugs/bug385_64.go +++ b/test/fixedbugs/bug385_64.go @@ -8,11 +8,17 @@ // license that can be found in the LICENSE file. // Issue 2444 +// Issue 4666: issue with arrays of exactly 4GB. package main -func main() { // ERROR "stack frame too large" + +func main() { // ERROR "stack frame too large" var arr [1000200030]int32 arr_bkup := arr _ = arr_bkup } +func F() { // ERROR "stack frame too large" + var arr [1 << 30]int32 + _ = arr[42] +} |
