Home | History | Annotate | Download | only in test

Lines Matching refs:live

1 // errorcheckwithauto -0 -l -live -wb=0 -d=ssa/insert_resched_checks/off
4 // rescheduling checks need to be turned off because there are some live variables across the inserted check call
36 printpointer(&x) // ERROR "live at call to printpointer: x$"
37 printpointer(&x) // ERROR "live at call to printpointer: x$"
42 printint(0) // nothing live here
46 printpointer(&x) // ERROR "live at call to printpointer: x$"
47 printpointer(&x) // ERROR "live at call to printpointer: x$"
51 // Here x and y are ambiguously live. In previous go versions they
52 // were marked as live throughout the function to avoid being
64 printpointer(&x) // ERROR "live at call to printpointer: x$"
65 printpointer(&x) // ERROR "live at call to printpointer: x$"
68 printpointer(&y) // ERROR "live at call to printpointer: y$"
69 printpointer(&y) // ERROR "live at call to printpointer: y$"
71 printint(0) // ERROR "f3: x \(type \*int\) is ambiguously live$" "f3: y \(type \*int\) is ambiguously live$" "live at call to printint: x y$"
74 // The old algorithm treated x as live on all code that
80 func f4(b1, b2 bool) { // x not live here
82 printint(0) // x not live here
89 printint(**z) // ERROR "live at call to printint: x$"
91 printint(1) // x not live here
95 printint(**z) // ERROR "live at call to printint: x$"
110 printint(**z) // ERROR "f5: x \(type \*int\) is ambiguously live$" "f5: y \(type \*int\) is ambiguously live$" "live at call to printint: x y$"
113 // confusion about the _ result used to cause spurious "live at entry to f6: _".
120 // confusion about addressed results used to cause "live at entry to f7: x".
128 // ignoring block returns used to cause "live at entry to f8: x, y".
136 // ignoring block assignments used to cause "live at entry to f9: x"
144 y := interface{}(str()) // ERROR "live at call to convT2Estring: .autotmp_[0-9]+ x.data x.type$" "live at call to str: x.data x.type$"
150 // leading to "live at entry to f10: ~r1" (unnamed result).
164 // this used to have a spurious "live at entry to f11a: ~r0"
166 select { // ERROR "live at call to newselect: .autotmp_[0-9]+$" "live at call to selectgo: .autotmp_[0-9]+$"
167 case <-c: // ERROR "live at call to selectrecv: .autotmp_[0-9]+$"
169 case <-c: // ERROR "live at call to selectrecv: .autotmp_[0-9]+$"
179 // This used to have a spurious "live at call to printint: p".
180 printint(1) // nothing live here!
181 select { // ERROR "live at call to newselect: .autotmp_[0-9]+$" "live at call to selectgo: .autotmp_[0-9]+$"
182 case <-c: // ERROR "live at call to selectrecv: .autotmp_[0-9]+$"
184 case <-c: // ERROR "live at call to selectrecv: .autotmp_[0-9]+$"
200 printint(1) // ERROR "live at call to printint: p$"
201 select { // ERROR "live at call to newselect: .autotmp_[0-9]+ p$" "live at call to selectgo: .autotmp_[0-9]+ p$"
202 case <-c: // ERROR "live at call to selectrecv: .autotmp_[0-9]+ p$"
203 case <-c: // ERROR "live at call to selectrecv: .autotmp_[0-9]+ p$"
211 // this used to have a spurious "live at entry to f12: ~r0".
222 // this used to be missing the fact that s is live during the call to g13 (because it is
227 s = h13(s, g13(s)) // ERROR "live at call to g13: s.ptr$"
237 printstringpointer(&x) // ERROR "live at call to printstringpointer: x$"
243 // ambiguously live values that must be zeroed.
246 // and also that none show up in "ambiguously live" messages.
257 delete(mi, iface()) // ERROR "live at call to mapdelete: .autotmp_[0-9]+$"
259 delete(mi, iface()) // ERROR "live at call to mapdelete: .autotmp_[0-9]+$"
260 delete(mi, iface()) // ERROR "live at call to mapdelete: .autotmp_[0-9]+$"
268 func f17a(p *byte) { // ERROR "live at entry to f17a: p$"
270 m2[x2] = p // ERROR "live at call to mapassign: p$"
272 m2[x2] = p // ERROR "live at call to mapassign: p$"
273 m2[x2] = p // ERROR "live at call to mapassign: p$"
276 func f17b(p *byte) { // ERROR "live at entry to f17b: p$"
279 m2s[str()] = p // ERROR "live at call to mapassign_faststr: p$" "live at call to str: p$"
281 m2s[str()] = p // ERROR "live at call to mapassign_faststr: p$" "live at call to str: p$"
282 m2s[str()] = p // ERROR "live at call to mapassign_faststr: p$" "live at call to str: p$"
288 m2s[str()] = f17d() // ERROR "live at call to f17d: .autotmp_[0-9]+$" "live at call to mapassign_faststr: .autotmp_[0-9]+$"
290 m2s[str()] = f17d() // ERROR "live at call to f17d: .autotmp_[0-9]+$" "live at call to mapassign_faststr: .autotmp_[0-9]+$"
291 m2s[str()] = f17d() // ERROR "live at call to f17d: .autotmp_[0-9]+$" "live at call to mapassign_faststr: .autotmp_[0-9]+$"
303 z = m2[g18()] // ERROR "live at call to mapaccess1: .autotmp_[0-9]+$"
305 z = m2[g18()] // ERROR "live at call to mapaccess1: .autotmp_[0-9]+$"
306 z = m2[g18()] // ERROR "live at call to mapaccess1: .autotmp_[0-9]+$"
320 z = <-ch // ERROR "live at call to chanrecv1: .autotmp_[0-9]+$"
322 z = <-ch // ERROR "live at call to chanrecv1: .autotmp_[0-9]+$"
323 z = <-ch // ERROR "live at call to chanrecv1: .autotmp_[0-9]+$"
330 ch <- byteptr() // ERROR "live at call to chansend1: .autotmp_[0-9]+$"
332 ch <- byteptr() // ERROR "live at call to chansend1: .autotmp_[0-9]+$"
333 ch <- byteptr() // ERROR "live at call to chansend1: .autotmp_[0-9]+$"
340 z = m2[[2]string{"x", "y"}] // ERROR "live at call to mapaccess1: .autotmp_[0-9]+$"
342 z = m2[[2]string{"x", "y"}] // ERROR "live at call to mapaccess1: .autotmp_[0-9]+$"
343 z = m2[[2]string{"x", "y"}] // ERROR "live at call to mapaccess1: .autotmp_[0-9]+$"
352 z, ok = m2[[2]string{"x", "y"}] // ERROR "live at call to mapaccess2: .autotmp_[0-9]+$"
354 z, ok = m2[[2]string{"x", "y"}] // ERROR "live at call to mapaccess2: .autotmp_[0-9]+$"
355 z, ok = m2[[2]string{"x", "y"}] // ERROR "live at call to mapaccess2: .autotmp_[0-9]+$"
364 m2[[2]string{"x", "y"}] = nil // ERROR "live at call to mapassign: .autotmp_[0-9]+$"
366 m2[[2]string{"x", "y"}] = nil // ERROR "live at call to mapassign: .autotmp_[0-9]+$"
367 m2[[2]string{"x", "y"}] = nil // ERROR "live at call to mapassign: .autotmp_[0-9]+$"
370 // defer should not cause spurious ambiguously live variables
386 // live variables.
390 print26((*int)(nil), (*int)(nil), (*int)(nil)) // ERROR "live at call to print26: .autotmp_[0-9]+$"
392 print26((*int)(nil), (*int)(nil), (*int)(nil)) // ERROR "live at call to print26: .autotmp_[0-9]+$"
393 print26((*int)(nil), (*int)(nil), (*int)(nil)) // ERROR "live at call to print26: .autotmp_[0-9]+$"
405 call27(func() { x++ }) // ERROR "live at call to call27: .autotmp_[0-9]+$"
407 call27(func() { x++ }) // ERROR "live at call to call27: .autotmp_[0-9]+$"
408 call27(func() { x++ }) // ERROR "live at call to call27: .autotmp_[0-9]+$"
417 defer call27(func() { x++ }) // ERROR "live at call to deferproc: .autotmp_[0-9]+$" "live at call to deferreturn: .autotmp_[0-9]+$"
419 defer call27(func() { x++ }) // ERROR "f27defer: .autotmp_[0-9]+ \(type struct { F uintptr; x \*int }\) is ambiguously live$" "live at call to deferproc: .autotmp_[0-9]+ .autotmp_[0-9]+$" "live at call to deferreturn: .autotmp_[0-9]+ .autotmp_[0-9]+$"
420 printnl() // ERROR "live at call to printnl: .autotmp_[0-9]+ .autotmp_[0-9]+$"
421 } // ERROR "live at call to deferreturn: .autotmp_[0-9]+ .autotmp_[0-9]+$"
428 go call27(func() { x++ }) // ERROR "live at call to newobject: &x$" "live at call to newproc: &x$"
430 go call27(func() { x++ }) // ERROR "live at call to newobject: &x$"
443 printstring(s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10) // ERROR "live at call to concatstrings: .autotmp_[0-9]+$" "live at call to printstring: .autotmp_[0-9]+$"
445 printstring(s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10) // ERROR "live at call to concatstrings: .autotmp_[0-9]+$" "live at call to printstring: .autotmp_[0-9]+$"
446 printstring(s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10) // ERROR "live at call to concatstrings: .autotmp_[0-9]+$" "live at call to printstring: .autotmp_[0-9]+$"
453 for k := range m { // ERROR "live at call to mapiterinit: .autotmp_[0-9]+$" "live at call to mapiternext: .autotmp_[0-9]+$"
454 printstring(k) // ERROR "live at call to printstring: .autotmp_[0-9]+$"
457 for k := range m { // ERROR "live at call to mapiterinit: .autotmp_[0-9]+$" "live at call to mapiternext: .autotmp_[0-9]+$"
458 printstring(k) // ERROR "live at call to printstring: .autotmp_[0-9]+$"
460 for k := range m { // ERROR "live at call to mapiterinit: .autotmp_[0-9]+$" "live at call to mapiternext: .autotmp_[0-9]+$"
461 printstring(k) // ERROR "live at call to printstring: .autotmp_[0-9]+$"
476 // two live temps during printintpointer(p):
482 printintpointer(p.intp) // ERROR "live at call to printintpointer: .autotmp_[0-9]+ .autotmp_[0-9]+$"
486 printintpointer(p.intp) // ERROR "live at call to printintpointer: .autotmp_[0-9]+ .autotmp_[0-9]+$"
489 printintpointer(p.intp) // ERROR "live at call to printintpointer: .autotmp_[0-9]+ .autotmp_[0-9]+$"
497 g31(str()) // ERROR "live at call to convT2Estring: .autotmp_[0-9]+$" "live at call to g31: .autotmp_[0-9]+$"
500 h31(str()) // ERROR "live at call to convT2Estring: .autotmp_[0-9]+ .autotmp_[0-9]+$" "live at call to h31: .autotmp_[0-9]+$" "live at call to newobject: .autotmp_[0-9]+$"
503 panic(str()) // ERROR "live at call to convT2Estring: .autotmp_[0-9]+$" "live at call to gopanic: .autotmp_[0-9]+$"
515 func (t *T32) Inc() { // ERROR "live at entry to \(\*T32\).Inc: t$"
523 call32(t32.Inc) // ERROR "live at call to call32: .autotmp_[0-9]+$"
525 call32(t32.Inc) // ERROR "live at call to call32: .autotmp_[0-9]+$"
526 call32(t32.Inc) // ERROR "live at call to call32: .autotmp_[0-9]+$"
538 if m33[byteptr()] == 0 { // ERROR "live at call to mapaccess1: .autotmp_[0-9]+$"
548 if m33[byteptr()] == 0 { // ERROR "live at call to mapaccess1: .autotmp_[0-9]+$"
556 if m33[byteptr()] == 0 && m33[byteptr()] == 0 { // ERROR "live at call to mapaccess1: .autotmp_[0-9]+$"
564 if m33[byteptr()] == 0 || m33[byteptr()] == 0 { // ERROR "live at call to mapaccess1: .autotmp_[0-9]+$"
572 live at call to mapaccess1: .autotmp_[0-9]+$"
589 // we care that the println lines have no live variables
592 select { // ERROR "live at call to newselect:( .autotmp_[0-9]+)+$" "live at call to selectgo:( .autotmp_[0-9]+)+$"
593 case <-fc38(): // ERROR "live at call to selectrecv:( .autotmp_[0-9]+)+$"
595 case fc38() <- *fi38(1): // ERROR "live at call to fc38:( .autotmp_[0-9]+)+$" "live at call to fi38:( .autotmp_[0-9]+)+$" "live at call to selectsend:( .autotmp_[0-9]+)+$"
597 case *fi38(2) = <-fc38(): // ERROR "live at call to fc38:( .autotmp_[0-9]+)+$" "live at call to fi38:( .autotmp_[0-9]+)+$" "live at call to selectrecv:( .autotmp_[0-9]+)+$"
599 case *fi38(3), *fb38() = <-fc38(): // ERROR "live at call to fb38:( .autotmp_[0-9]+)+$" "live at call to fc38:( .autotmp_[0-9]+)+$" "live at call to fi38:( .autotmp_[0-9]+)+$" "live at call to selectrecv:( .autotmp_[0-9]+)+$"
611 printnl() // ERROR "live at call to printnl: .autotmp_[0-9]+$"
617 printnl() // ERROR "live at call to printnl: .autotmp_[0-9]+$"
623 x[0] = new(int) // ERROR "live at call to newobject: x$"
624 printnl() // ERROR "live at call to printnl: x$"
630 x[0] = new(int) // ERROR "live at call to newobject: x$"
631 printnl() // ERROR "live at call to printnl: x$"
647 ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$"
659 ret.m = make(map[int]int) // ERROR "live at call to fastrand: .autotmp_[0-9]+ ret$"
661 printnl() // ERROR "live at call to printnl: .autotmp_[0-9]+ ret$"
662 useT40(t) // ERROR "live at call to useT40: .autotmp_[0-9]+ ret$"
665 func ddd1(x, y *int) { // ERROR "live at entry to ddd1: x y$"
666 ddd2(x, y) // ERROR "live at call to ddd2: .autotmp_[0-9]+$"
668 // Note: no .?autotmp live at printnl. See issue 16996.
670 func ddd2(a ...*int) { // ERROR "live at entry to ddd2: a$"
674 // issue 16016: autogenerated wrapper should have arguments live
679 type R struct{ *T } // ERRORAUTO "live at entry to \(\*R\)\.Foo: \.this ptr" "live at entry to R\.Foo: \.this ptr"
681 // issue 18860: output arguments must be live all the time if there is a defer.
682 // In particular, at printint r must be live.
683 func f41(p, q *int) (r *int) { // ERROR "live at entry to f41: p q$"
685 defer func() { // ERROR "live at call to deferproc: q r$" "live at call to deferreturn: r$"
688 printint(0) // ERROR "live at call to printint: q r$"
690 return // ERROR "live at call to deferreturn: r$"