]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/inline_big.go
cmd/compile: restore zero-copy string->[]byte optimization
[gostls13.git] / test / inline_big.go
index f579fc0910684bd1caaa32d48eb94b395dd4851d..7dd1abdb6ae18b53a74659c66cf38318c13cd243 100644 (file)
@@ -9,18 +9,18 @@
 
 package foo
 
-func small(a []int) int { // ERROR "can inline small with cost .* as:.*" "a does not escape" "does not mutate param: a" "does not call param: a"
+func small(a []int) int { // ERROR "can inline small with cost .* as:.*" "a does not escape"
        // Cost 16 body (need cost < 20).
        // See cmd/compile/internal/gc/inl.go:inlineBigFunction*
        return a[0] + a[1] + a[2] + a[3]
 }
-func medium(a []int) int { // ERROR "can inline medium with cost .* as:.*" "a does not escape" "does not mutate param: a" "does not call param: a"
+func medium(a []int) int { // ERROR "can inline medium with cost .* as:.*" "a does not escape"
        // Cost 32 body (need cost > 20 and cost < 80).
        // See cmd/compile/internal/gc/inl.go:inlineBigFunction*
        return a[0] + a[1] + a[2] + a[3] + a[4] + a[5] + a[6] + a[7]
 }
 
-func f(a []int) int { // ERROR "cannot inline f:.*" "a does not escape" "function f considered 'big'" "mutates param: a derefs=0" "does not call param: a"
+func f(a []int) int { // ERROR "cannot inline f:.*" "a does not escape" "function f considered 'big'"
        // Add lots of nodes to f's body. We need >5000.
        // See cmd/compile/internal/gc/inl.go:inlineBigFunction*
        a[0] = 0