We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff3ae45 commit f85d0e3Copy full SHA for f85d0e3
test/fixedbugs/issue30898.go
@@ -0,0 +1,19 @@
1
+// errorcheck -0 -m
2
+
3
+// Copyright 2019 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
+// Test escape analysis for functions with variadic arguments
8
9
+package foo
10
11
+func debugf(format string, args ...interface{}) { // ERROR "can inline debugf" "format does not escape" "args does not escape"
12
+ // Dummy implementation for non-debug build.
13
+ // A non-empty implementation would be enabled with a build tag.
14
+}
15
16
+func bar() { // ERROR "can inline bar"
17
+ value := 10
18
+ debugf("value is %d", value) // ERROR "inlining call to debugf" "value does not escape" "\[\]interface {} literal does not escape"
19
0 commit comments