Home | History | Annotate | Download | only in test

Lines Matching refs:heap

14 func alloc(x int) *int { // ERROR "can inline alloc" "moved to heap: x"
15 return &x // ERROR "&x escapes to heap"
21 p = alloc(2) // ERROR "inlining call to alloc" "&x escapes to heap" "moved to heap: x"
27 }() // ERROR "inlining call to f1.func1" "inlining call to alloc" "&x escapes to heap" "moved to heap: x"
29 f = func() { // ERROR "func literal escapes to heap" "can inline f1.func2"
30 p = alloc(3) // ERROR "inlining call to alloc" "&x escapes to heap" "moved to heap: x"
45 t := new(T) // ERROR "new.T. escapes to heap"
46 return &t.x[0] // ERROR "&t.x.0. escapes to heap"
55 t := new(T) // ERROR "new.T. escapes to heap"
56 return &t.x.y // ERROR "&t.x.y escapes to heap"