Lines Matching full:can
7 // license that can be found in the LICENSE file.
20 func add2(p *byte, n uintptr) *byte { // ERROR "can inline add2" "leaking param: p to result"
24 func add1(p unsafe.Pointer, x uintptr) unsafe.Pointer { // ERROR "can inline add1" "leaking param: …
28 func f(x *byte) *byte { // ERROR "can inline f" "leaking param: x to result"
37 func h(x int) int { // ERROR "can inline h"
41 func i(x int) int { // ERROR "can inline i"
46 func j(x int) int { // ERROR "can inline j"
55 func f2() int { // ERROR "can inline f2"
65 // local closures can be inlined
66 func l(x, y int) (int, int, error) { // ERROR "can inline l"
67 …e := func(err error) (int, int, error) { // ERROR "can inline l.func1" "func literal does not esca…
81 foo := func() int { return 1 } // ERROR "can inline m.func1" "func literal does not escape"
83 foo = func() int { return 2 } // ERROR "can inline m.func2" "func literal does not escape"
89 foo := func() int { return 1 } // ERROR "can inline n.func1" "func literal does not escape"
97 foo := func() int { return 1 } // ERROR "can inline o.func1" "func literal does not escape"
98 func(x int) { // ERROR "can inline o.func2"
100 foo = func() int { return 2 } // ERROR "can inline o.func2"
106 func p() int { // ERROR "can inline p"
107 return func() int { return 42 }() // ERROR "can inline p.func1" "inlining call to p.func1"
110 func q(x int) int { // ERROR "can inline q"
111 foo := func() int { return x * 2 } // ERROR "can inline q.func1" "func literal does not escape"
116 foo := func(x int) int { // ERROR "can inline r.func1" "func literal does not escape"
119 bar := func(x int) int { // ERROR "func literal does not escape" "can inline r.func2"
120 return x + func(y int) int { // ERROR "can inline r.func2.1" "can inline r.r.func2.func3"
127 func s0(x int) int { // ERROR "can inline s0"
128 foo := func() { // ERROR "can inline s0.func1" "func literal does not escape"
135 func s1(x int) int { // ERROR "can inline s1"
136 foo := func() int { // ERROR "can inline s1.func1" "func literal does not escape"
143 func switchBreak(x, y int) int { // ERROR "can inline switchBreak"
159 func switchType(x interface{}) int { // ERROR "can inline switchType" "x does not escape"
170 func switchConst1(p func(string)) { // ERROR "can inline switchConst" "p does not escape"
184 func switchConst2() string { // ERROR "can inline switchConst2"
198 func switchConst3() string { // ERROR "can inline switchConst3"
212 func switchConst4() { // ERROR "can inline switchConst4"
214 want := func() string { // ERROR "can inline switchConst4.func1"
227 func inlineRangeIntoMe(data []int) { // ERROR "can inline inlineRangeIntoMe" "data does not escape"
231 func rangeFunc(xs []int, b int) int { // ERROR "can inline rangeFunc" "xs does not escape"
242 func (T) meth(int, int) {} // ERROR "can inline T.meth"
244 func k() (T, int, int) { return T{}, 0, 0 } // ERROR "can inline k"
246 func f3() { // ERROR "can inline f3"
251 func small1() { // ERROR "can inline small1"
254 func small2() int { // ERROR "can inline small2"
257 func small3(t T) { // ERROR "can inline small3"
268 // Issue #29737 - make sure we can do inlining for a chain of recursive functions
269 func ee() { // ERROR "can inline ee"
273 func ff(x int) { // ERROR "can inline ff"
279 func gg(x int) { // ERROR "can inline gg"
282 func hh(x int) { // ERROR "can inline hh"
286 // Issue #14768 - make sure we can inline for loops.
287 func for1(fn func() bool) { // ERROR "can inline for1" "fn does not escape"
297 func for2(fn func() bool) { // ERROR "can inline for2" "fn does not escape"
308 // Issue #18493 - make sure we can do inlining of functions with a method value
311 func (a T1) meth(val int) int { // ERROR "can inline T1.meth"
315 func getMeth(t1 T1) func(int) int { // ERROR "can inline getMeth"
320 func ii() { // ERROR "can inline ii"
327 // go and defer statements can be inlined.
335 func gd2() int { // ERROR "can inline gd2"
339 func gd3() func() { // ERROR "can inline gd3"
344 func EncodeQuad(d []uint32, x [6]float32) { // ERROR "can inline EncodeQuad" "d does not escape"
356 func float32bits(f float32) uint32 { // ERROR "can inline float32bits"
361 func Conv(v uint64) uint64 { // ERROR "can inline Conv"
364 func conv2(v uint64) uint64 { // ERROR "can inline conv2"
367 func conv1(v uint64) uint64 { // ERROR "can inline conv1"
371 func select1(x, y chan bool) int { // ERROR "can inline select1" "x does not escape" "y does not es…
380 func select2(x, y chan bool) { // ERROR "can inline select2" "x does not escape" "y does not escape"
381 loop: // test that labeled select can be inlined.
389 func inlineSelect2(x, y chan bool) { // ERROR "can inline inlineSelect2" ERROR "x does not escape" …
401 func issue62211(x bool) { // ERROR "can inline issue62211"
414 func issue62211F(x bool) bool { // ERROR "can inline issue62211F"
421 func issue62211G(x bool) bool { // ERROR "can inline issue62211G"