Home | History | Annotate | Download | only in test

Lines Matching refs:to

7 // Test escape analysis with respect to field assignments.
24 i := 0 // ERROR "moved to heap: i$"
26 x.p1 = &i // ERROR "&i escapes to heap$"
27 sink = x.p1 // ERROR "x\.p1 escapes to heap"
31 i := 0 // ERROR "moved to heap: i$"
34 x.p1 = &i // ERROR "&i escapes to heap$"
35 sink = x.p2 // ERROR "x\.p2 escapes to heap"
39 i := 0 // ERROR "moved to heap: i$"
41 x.p1 = &i // ERROR "&i escapes to heap$"
42 sink = x // ERROR "x escapes to heap"
46 i := 0 // ERROR "moved to heap: i$"
48 y.x.p1 = &i // ERROR "&i escapes to heap$"
50 sink = x // ERROR "x escapes to heap"
54 i := 0 // ERROR "moved to heap: i$"
57 x.a[0] = &i // ERROR "&i escapes to heap$"
58 sink = x.a[1] // ERROR "x\.a\[1\] escapes to heap"
63 sink = x.p2 // ERROR "x\.p2 escapes to heap"
67 i := 0 // ERROR "moved to heap: i$"
70 x.p1 = &i // ERROR "&i escapes to heap$"
85 i := 0 // ERROR "moved to heap: i$"
87 y.x.p1 = &i // ERROR "&i escapes to heap$"
91 sink = y1.x.p1 // ERROR "y1\.x\.p1 escapes to heap"
95 i := 0 // ERROR "moved to heap: i$"
97 y.x.p1 = &i // ERROR "&i escapes to heap$"
101 sink = y1.x // ERROR "y1\.x escapes to heap"
105 i := 0 // ERROR "moved to heap: i$"
108 y.x.p1 = &i // ERROR "&i escapes to heap$"
112 sink = y1.x.p2 // ERROR "y1\.x\.p2 escapes to heap"
116 i := 0 // ERROR "moved to heap: i$"
117 x := X{p1: &i} // ERROR "&i escapes to heap$"
118 sink = x.p1 // ERROR "x\.p1 escapes to heap"
122 i := 0 // ERROR "moved to heap: i$"
124 x := X{p1: &i} // ERROR "&i escapes to heap$"
125 sink = x.p2 // ERROR "x\.p2 escapes to heap"
129 i := 0 // ERROR "moved to heap: i$"
130 x := &X{p1: &i} // ERROR "&i escapes to heap$" "field13 &X literal does not escape$"
131 sink = x.p1 // ERROR "x\.p1 escapes to heap"
135 i := 0 // ERROR "moved to heap: i$"
137 x := &X{p1: &i} // ERROR "&i escapes to heap$" "field14 &X literal does not escape$"
138 sink = x.p2 // ERROR "x\.p2 escapes to heap"
142 i := 0 // ERROR "moved to heap: i$"
143 x := &X{p1: &i} // ERROR "&X literal escapes to heap$" "&i escapes to heap$"
144 sink = x // ERROR "x escapes to heap"
148 i := 0 // ERROR "moved to heap: i$"
151 x.p1 = &i // ERROR "&i escapes to heap$"
152 var iface interface{} = x // ERROR "x escapes to heap"
154 sink = x1.p2 // ERROR "x1\.p2 escapes to heap"
158 i := 0 // ERROR "moved to heap: i$"
160 x.p1 = &i // ERROR "&i escapes to heap$"
161 var iface interface{} = x // ERROR "x escapes to heap"
163 sink = x1.p1 // ERROR "x1\.p1 escapes to heap"
167 i := 0 // ERROR "moved to heap: i$"
170 x.p1 = &i // ERROR "&i escapes to heap$"
171 var iface interface{} = x // ERROR "x escapes to heap"
173 sink = y // ERROR "y escapes to heap"