gcc/testsuite/go.test/test/fixedbugs/issue20780.go
raw| 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 | |
| 10 | package main |
| 11 | |
| 12 | func f() { // GC_ERROR "stack frame too large" |
| 13 | var x [800e6]byte |
| 14 | g(x) |
| 15 | return |
| 16 | } |
| 17 | |
| 18 | //go:noinline |
| 19 | func g([800e6]byte) {} |