Home | History | Annotate | Download | only in test

Lines Matching full:"$ var"

199 func (b *Bar2) LeakSelf() { // ERROR "leaking param: b$"
200 b.ii = b.i[0:4] // ERROR "b.i escapes to heap$"
201 }
202
203 func (b *Bar2) LeakSelf2() { // ERROR "leaking param: b$"
204 var
buf []int
327 func (f *Foo) foo47() { // ERROR "leaking param: f$"
328 f.xx = &f.x // ERROR "&f.x escapes to heap$"
329 }
330
331 var
ptrSlice []*int
404 func foo60(i *int) *int { // ERROR "leaking param: i to result ~r1 level=0$"
405 var
a [12]*int
410 func foo60a(i *int) *int { // ERROR "foo60a i does not escape$"
411 var
a [12]*int
496 func foo71(x *int) []*int { // ERROR "leaking param: x$"
497 var
y []*int
502 func foo71a(x int) []*int { // ERROR "moved to heap: x$"
503 var
y []*int
515 var x int // ERROR "moved to heap: x$"
516 var
y [10]*int
634 func myprint1(y *int, x ...interface{}) *interface{} { // ERROR "leaking param: x to result ~r2 level=0$" "myprint1 y does not escape$"
635 return &x[0] // ERROR "&x\[0\] escapes to heap$"
636 }
637
638 func foo75(z *int) { // ERROR "foo75 z does not escape$"
639 myprint(z, 1, 2, 3) // ERROR "1 does not escape" "2 does not escape" "3 does not escape" "foo75 ... argument does not escape$"
640 }
641
642 func foo75a(z *int) { // ERROR "foo75a z does not escape$"
643 myprint1(z, 1, 2, 3) // ERROR "1 does not escape" "2 does not escape" "3 does not escape" "foo75a ... argument does not escape$"
644 }
645
646 func foo75esc(z *int) { // ERROR "leaking param: z$"
647 gxx = myprint(z, 1, 2, 3) // ERROR "1 does not escape" "2 does not escape" "3 does not escape" "foo75esc ... argument does not escape$"
648 }
649
650 func foo75aesc(z *int) { // ERROR "foo75aesc z does not escape$"
651 var
ppi **interface{} // assignments to pointer dereferences lose track
688 func foo77b(z []interface{}) { // ERROR "leaking param: z$"
689 var
ppi **interface{}
1185 func foo124(x **int) { // ERROR "foo124 x does not escape$"
1186 var
i int // ERROR "moved to heap: i$"
1193 func foo124(x **int) { // ERROR "foo124 x does not escape$"
1194 var i int // ERROR "moved to heap: i$"
1195 p := &i // ERROR "&i escapes to heap$"
1196 func() { // ERROR "foo124 func literal does not escape$"
1197 *x = p // ERROR "leaking closure reference p$"
1198 }()
1199 }
1200
1201 func foo125(ch chan *int) { // ERROR "foo125 ch does not escape$"
1202 var
i int // ERROR "moved to heap: i$"
1367 F1(buf1[:]) // ERROR "G buf1 does not escape$"
1368
1369 var
buf2 [10]byte // ERROR "moved to heap: buf2$"
1370 F1(buf1[:]) // ERROR "G buf1 does not escape$"
1371
1372 var buf2 [10]byte // ERROR "moved to heap: buf2$"
1373 F2(buf2[:]) // ERROR "buf2 escapes to heap$"
1374
1375 var
buf3 [10]byte
1373 F3(buf3[:]) // ERROR "G buf3 does not escape$"
1374
1375 var
buf4 [10]byte // ERROR "moved to heap: buf4$"
1423 foo144a(&x) // ERROR "foo144 &x does not escape$"
1424 var
y int
1438 func foo145(l List) { // ERROR "foo145 l does not escape$"
1439 var
p *List
1444 for p = &l; p.Next != nil; p = p.Next { // ERROR "foo145 &l does not escape$"
1445 }
1446 }
1447
1448 func foo146(l List) { // ERROR "foo146 l does not escape$"
1449 var
p *List
1451 func foo147(l List) { // ERROR "foo147 l does not escape$"
1452 var
p *List
1466 func foo149(l List) { // ERROR "foo149 l does not escape$"
1467 var
p *List