github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/test/fixedbugs/bug385_64.go (about) 1 // +build amd64 2 // errorcheck 3 4 // Copyright 2011 The Go Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style 6 // license that can be found in the LICENSE file. 7 8 // Issue 2444 9 // Issue 4666: issue with arrays of exactly 4GB. 10 11 package main 12 13 func main() { // ERROR "stack frame too large" 14 var arr [1000200030]int32 15 arr_bkup := arr 16 _ = arr_bkup 17 } 18 19 func F() { // ERROR "stack frame too large" 20 var arr [1 << 30]int32 21 _ = arr[42] 22 }