Home | History | Annotate | Download | only in fixedbugs
      1 // errorcheck
      2 
      3 // Copyright 2017 The Go Authors. All rights reserved.
      4 // Use of this source code is governed by a BSD-style
      5 // license that can be found in the LICENSE file.
      6 
      7 // +build !386,!amd64p32,!arm,!mips,!mipsle
      8 
      9 package p
     10 
     11 func f3(x *[1 << 31]byte) byte { // 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 { // 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 { // ERROR "stack frame too large"
     24 	for _, b := range *x {
     25 		return b
     26 	}
     27 	return 0
     28 }
     29