]> Cypherpunks.ru repositories - gostls13.git/blob - test/fixedbugs/issue41635.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / fixedbugs / issue41635.go
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 "non-constant size" ""
16         _ = make([]byte, 100, m) // ERROR "non-constant size" ""
17 }