Home | History | Annotate | Download | only in test

Lines Matching refs:leak

136 func (b *Bar) Leak() *int { // ERROR "leaking param: b to result ~r0 level=0$"
183 func (b *Bar2) Leak() []int { // ERROR "leaking param: b to result ~r0 level=0$"
293 func (f *Foo) Leak() { // ERROR "leaking param: f$"
777 // does not leak c
785 // does not leak m
796 // does leak x
801 // does not leak m but does leak content
806 // does leak m
811 // does not leak m
816 // does leak m
821 // does not leak m
829 // does leak m
837 // does not leak m
845 // does leak x
850 // does not leak x
857 // does not leak x but does leak content
862 // does not leak x but does leak content
867 // does leak x
1532 // BAD -- level of leak ought to be 0
1636 // We assign the pointer to x.p but leak x.s. Escape analysis coarsens flows