]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/escape_calls.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / escape_calls.go
index 2dbfee1558655cfebf38cb4c776a3f73aea47750..aa7c7f516cf96ef38dc7ab1b8617e7cbf5b246e7 100644 (file)
@@ -11,7 +11,7 @@
 
 package foo
 
-func f(buf []byte) []byte { // ERROR "leaking param: buf to result ~r1 level=0$"
+func f(buf []byte) []byte { // ERROR "leaking param: buf to result ~r0 level=0$"
        return buf
 }
 
@@ -50,5 +50,5 @@ func bar() {
        f := prototype
        f = func(ss []string) { got = append(got, ss) } // ERROR "leaking param: ss" "func literal does not escape"
        s := "string"
-       f([]string{s}) // ERROR "\[\]string literal escapes to heap"
+       f([]string{s}) // ERROR "\[\]string{...} escapes to heap"
 }