Home | History | Annotate | Download | only in fixedbugs

Lines Matching refs:fn

44 	// of map.  Assign to fn declared outside of loop triggers escape of closure.
48 var fn func() // ERROR "moved to heap: fn$"
50 // var fn func() // this makes it work, because fn stays off heap
52 fn = func() { // ERROR "func literal escapes to heap$"
56 fn() // ERROR "&fn escapes to heap$"
59 fn()
72 // var fn func()
74 var fn func() // this makes it work, because fn stays off heap
76 fn = func() { // ERROR "test2 func literal does not escape$"
80 fn()
83 fn()
97 var fn func() // ERROR "moved to heap: fn$"
99 // var fn func() // this makes it work, because fn stays off heap
101 fn = func() { // ERROR "func literal escapes to heap$"
104 fn() // ERROR "&fn escapes to heap$"
109 fn()
123 // var fn func()
125 var fn func() // this makes it work, because fn stays off heap
127 fn = func() { // ERROR "test4 func literal does not escape$"
130 fn()
135 fn()
162 var fn *str
164 // var fn *str // this makes it work, because fn stays off heap
165 fn = &str{m} // ERROR "&str literal escapes to heap"
166 recur1(0, fn)
180 // var fn *str
182 var fn *str // this makes it work, because fn stays off heap
183 fn = &str{m} // ERROR "&str literal does not escape"
184 recur1(0, fn)