Home | History | Annotate | Download | only in test

Lines Matching refs:to

14 	x := 0         // ERROR "moved to heap: x"
17 // BAD: x should not escape to heap here
18 }(&x) // ERROR "&x escapes to heap"
22 x := 0 // ERROR "moved to heap: x"
26 // BAD: x should not escape to heap here
27 }(&x) // ERROR "&x escapes to heap"
34 x := 0 // ERROR "moved to heap: x"
37 }(&x) // ERROR "&x escapes to heap"
42 x := 0 // ERROR "moved to heap: x"
44 sink = p // ERROR "p escapes to heap"
45 }(&x) // ERROR "&x escapes to heap"
50 x := 0 // ERROR "moved to heap: x"
51 _ = func(p *int) *int { // ERROR "leaking param: p to result ~r1" "func literal does not escape"
53 }(&x) // ERROR "&x escapes to heap"
57 x := 0 // ERROR "moved to heap: x"
58 sink = func(p *int) *int { // ERROR "leaking param: p to result ~r1" "func literal does not escape"
60 }(&x) // ERROR "&x escapes to heap" "\(func literal\)\(&x\) escapes to heap"
64 x := 0 // ERROR "moved to heap: x"
65 func(p *int) { // ERROR "moved to heap: p" "func literal does not escape"
66 sink = &p // ERROR "&p escapes to heap"
67 }(&x) // ERROR "&x escapes to heap"
73 x := 0 // ERROR "moved to heap: x"
76 }(&x) // ERROR "&x escapes to heap"
82 x := 0 // ERROR "moved to heap: x"
85 // BAD: x should not escape to heap here
86 }(&x) // ERROR "&x escapes to heap"
91 x := 0 // ERROR "moved to heap: x"
93 defer func(p *int) { // ERROR "func literal escapes to heap" "p does not escape"
95 }(&x) // ERROR "&x escapes to heap"
101 x := 0 // ERROR "moved to heap: x"
102 defer func(p *int) { // ERROR "func literal escapes to heap" "p does not escape"
104 }(&x) // ERROR "&x escapes to heap"
109 x := 0 // ERROR "moved to heap: x"
111 sink = p // ERROR "p escapes to heap"
112 }(&x) // ERROR "&x escapes to heap"
117 x := 0 // ERROR "moved to heap: x"
118 defer func(p *int) *int { // ERROR "leaking param: p to result ~r1" "func literal does not escape"
120 }(&x) // ERROR "&x escapes to heap"
124 x := 0 // ERROR "moved to heap: x"
125 defer func(p *int) { // ERROR "moved to heap: p" "func literal does not escape"
126 sink = &p // ERROR "&p escapes to heap"
127 }(&x) // ERROR "&x escapes to heap"
131 x := 0 // ERROR "moved to heap: x"
133 p := &x // ERROR "moved to heap: p" "&x escapes to heap"
134 _ = func(p **int) *int { // ERROR "leaking param: p to result ~r1 level=1" "func literal does not escape"
137 }(&p) // ERROR "&p escapes to heap"
141 x := 0 // ERROR "moved to heap: x"
142 p := &x // ERROR "moved to heap: p" "&x escapes to heap"
143 sink = func(p **int) *int { // ERROR "leaking param: p to result ~r1 level=1" "func literal does not escape"
146 }(&p) // ERROR "&p escapes to heap" "\(func literal\)\(&p\) escapes to heap"