Lines Matching full:bar2
170 type Bar2 struct {
175 func NewBar2() *Bar2 {
176 return &Bar2{[12]int{42}, nil} // ERROR "&Bar2 literal escapes to heap$"
179 func (b *Bar2) NoLeak() int { // ERROR "\(\*Bar2\).NoLeak b does not escape$"
183 func (b *Bar2) Leak() []int { // ERROR "leaking param: b to result ~r0 level=0$"
187 func (b *Bar2) AlsoNoLeak() []int { // ERROR "leaking param: b to result ~r0 level=1$"
191 func (b Bar2) AgainNoLeak() [12]int { // ERROR "Bar2.AgainNoLeak b does not escape$"
195 func (b *Bar2) LeakSelf() { // ERROR "leaking param: b$"
199 func (b *Bar2) LeakSelf2() { // ERROR "leaking param: b$"