github.com/hikaru7719/go@v0.0.0-20181025140707-c8b2ac68906a/test/fixedbugs/issue20780.go (about) 1 // errorcheck 2 3 // Copyright 2018 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 // We have a limit of 1GB for stack frames. 8 // Make sure we include the callee args section. 9 // (The dispatch wrapper which implements (*S).f 10 // copies the return value from f to a stack temp, then 11 // from that stack temp to the return value of (*S).f. 12 // It uses ~800MB for each section.) 13 14 package main 15 16 type S struct { 17 i interface { 18 f() [800e6]byte 19 } 20 }