]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/escape_struct_return.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / escape_struct_return.go
index 8a9e0963fa65a6d7b473a8ef86b5ea9a3e8dfaac..a42ae1e8c9b5270e610865554af7477ac95ab6be 100644 (file)
@@ -15,11 +15,11 @@ type U struct {
        _spp **string
 }
 
-func A(sp *string, spp **string) U { // ERROR "leaking param: sp to result ~r2 level=0$" "leaking param: spp to result ~r2 level=0$"
+func A(sp *string, spp **string) U { // ERROR "leaking param: sp to result ~r0 level=0$" "leaking param: spp to result ~r0 level=0$"
        return U{sp, spp}
 }
 
-func B(spp **string) U { // ERROR "leaking param: spp to result ~r1 level=0$" "leaking param: spp to result ~r1 level=1$"
+func B(spp **string) U { // ERROR "leaking param: spp to result ~r0 level=0$"
        return U{*spp, spp}
 }