Lines Matching full:func
13 func ClosureCallArgs0() {
15 func(p *int) { // ERROR "p does not escape" "func literal does not escape"
21 func ClosureCallArgs1() {
24 func(p *int) { // ERROR "p does not escape" "func literal does not escape"
31 func ClosureCallArgs2() {
35 func(p *int) { // ERROR "p does not escape" "func literal does not escape"
41 func ClosureCallArgs3() {
43 func(p *int) { // ERROR "leaking param: p" "func literal does not escape"
48 func ClosureCallArgs4() {
51 _ = func(p *int) *int { // ERROR "leaking param: p to result ~r1" "func literal does not escape"
56 func ClosureCallArgs5() {
58 sink = func(p *int) *int { // ERROR "leaking param: p to result ~r1" "func literal does not escape"
60 }(&x) // ERROR "&x escapes to heap" "\(func literal\)\(&x\) escapes to heap"
63 func ClosureCallArgs6() {
65 func(p *int) { // ERROR "moved to heap: p" "func literal does not escape"
70 func ClosureCallArgs7() {
74 func(p *int) { // ERROR "leaking param: p" "func literal does not escape"
81 func ClosureCallArgs8() {
83 defer func(p *int) { // ERROR "p does not escape" "func literal does not escape"
89 func ClosureCallArgs9() {
93 defer func(p *int) { // ERROR "func literal escapes to heap" "p does not escape"
99 func ClosureCallArgs10() {
102 defer func(p *int) { // ERROR "func literal escapes to heap" "p does not escape"
108 func ClosureCallArgs11() {
110 defer func(p *int) { // ERROR "leaking param: p" "func literal does not escape"
115 func ClosureCallArgs12() {
118 defer func(p *int) *int { // ERROR "leaking param: p to result ~r1" "func literal does not escape"
123 func ClosureCallArgs13() {
125 defer func(p *int) { // ERROR "moved to heap: p" "func literal does not escape"
130 func ClosureCallArgs14() {
134 _ = func(p **int) *int { // ERROR "leaking param: p to result ~r1 level=1" "func literal does not escape"
140 func ClosureCallArgs15() {
143 sink = func(p **int) *int { // ERROR "leaking param: p to result ~r1 level=1" "func literal does not escape"
146 }(&p) // ERROR "&p escapes to heap" "\(func literal\)\(&p\) escapes to heap"