Home | History | Annotate | Download | only in test

Lines Matching refs:xx

39 // xx isn't going anywhere, so use of yy is ok
40 func foo4(xx, yy *int) { // ERROR "foo4 xx does not escape$" "foo4 yy does not escape$"
41 xx = yy
44 // xx isn't going anywhere, so taking address of yy is ok
45 func foo5(xx **int, yy *int) { // ERROR "foo5 xx does not escape$" "foo5 yy does not escape$"
46 xx = &yy // ERROR "foo5 &yy does not escape$"
49 func foo6(xx **int, yy *int) { // ERROR "foo6 xx does not escape$" "leaking param: yy$"
50 *xx = yy
53 func foo7(xx **int, yy *int) { // ERROR "foo7 xx does not escape$" "foo7 yy does not escape$"
54 **xx = *yy
57 func foo8(xx, yy *int) int { // ERROR "foo8 xx does not escape$" "foo8 yy does not escape$"
58 xx = yy
59 return *xx
62 func foo9(xx, yy *int) *int { // ERROR "leaking param: xx to result ~r2 level=0$" "leaking param: yy to result ~r2 level=0$"
63 xx = yy
64 return xx
67 func foo10(xx, yy *int) { // ERROR "foo10 xx does not escape$" "foo10 yy does not escape$"
68 *xx = *yy
73 xx := &x // ERROR "foo11 &x does not escape$"
75 *xx = *yy
260 func fooleak(xx *int) int { // ERROR "leaking param: xx$"
261 x = xx
265 func foonoleak(xx *int) int { // ERROR "foonoleak xx does not escape$"
266 return *x + *xx
278 xx *int
302 F.xx = &x // ERROR "&x escapes to heap$"
306 f.xx = &x // ERROR "&x escapes to heap$"
310 f.xx = &x // ERROR "&x escapes to heap$"
314 F.xx = yy
323 F.xx = f.xx
327 f.xx = &f.x // ERROR "&f.x escapes to heap$"