Source file test/fixedbugs/issue22200b.go
1 // errorcheck 2 3 //go:build !386 && !amd64p32 && !arm && !mips && !mipsle 4 5 // Copyright 2017 The Go Authors. All rights reserved. 6 // Use of this source code is governed by a BSD-style 7 // license that can be found in the LICENSE file. 8 9 package p 10 11 func f3(x *[1 << 31]byte) byte { // GC_ERROR "stack frame too large" 12 for _, b := range *x { 13 return b 14 } 15 return 0 16 } 17 func f4(x *[1 << 32]byte) byte { // GC_ERROR "stack frame too large" 18 for _, b := range *x { 19 return b 20 } 21 return 0 22 } 23 func f5(x *[1 << 33]byte) byte { // GC_ERROR "stack frame too large" 24 for _, b := range *x { 25 return b 26 } 27 return 0 28 } 29