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 7package p 8 9func 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} 18