1// errorcheck
2
3// Copyright 2023 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//go:build !386 && !amd64p32 && !arm && !mips && !mipsle
8
9package main
10
11func g() { // GC_ERROR "stack frame too large"
12	xs := [3000 * 2000][33]int{}
13	for _, x := range xs {
14		if len(x) > 50 {
15
16		}
17	}
18}
19
20func main() { // GC_ERROR "stack frame too large"
21	defer f()
22	g()
23}
24
25func f() {}
26