Debian Codegraph @

test/fixedbugs/issue41635.go

raw
1 //errorcheck -0 -m -m
2
3 // Copyright 2020 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 package p
8
9 func f() { // ERROR ""
10 n, m := 100, 200
11 _ = make([]byte, 1<<17) // ERROR "too large for stack" ""
12 _ = make([]byte, 100, 1<<17) // ERROR "too large for stack" ""
13 _ = make([]byte, n, 1<<17) // ERROR "too large for stack" ""
14
15 _ = make([]byte, n) // ERROR "does not escape"
16 _ = make([]byte, 100, m) // ERROR "does not escape"
17 }