aboutsummaryrefslogtreecommitdiff
path: root/test/live.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2016-09-07 03:23:20 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2016-09-07 03:23:44 +0000
commitbdb3b790c66444c388529fa1d9b3f4d6aaa4c13f (patch)
tree414930a419c07212a38938a6ef948fc8b314a6e2 /test/live.go
parent923a74ce7710c1e3b24b4cc3220e2ba38d7673af (diff)
downloadgo-bdb3b790c66444c388529fa1d9b3f4d6aaa4c13f.tar.gz
go-bdb3b790c66444c388529fa1d9b3f4d6aaa4c13f.zip
Revert of cmd/compile: ignore contentEscapes for marking nodes as escaping
Reason for revert: broke the build due to cherrypick; relies on an unsubmitted parent CL. Original issue's description: > cmd/compile: ignore contentEscapes for marking nodes as escaping > > We can still stack allocate and VarKill nodes which don't > escape but their content does. > > Fixes #16996 > > Change-Id: If8aa0fcf2c327b4cb880a3d5af8d213289e6f6bf > Reviewed-on: https://go-review.googlesource.com/28575 > Run-TryBot: Keith Randall <khr@golang.org> > TryBot-Result: Gobot Gobot <gobot@golang.org> > Reviewed-by: David Chase <drchase@google.com> > Change-Id: Ie1a325209de14d70af6acb2d78269b7a0450da7a Reviewed-on: https://go-review.googlesource.com/28578 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'test/live.go')
-rw-r--r--test/live.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/live.go b/test/live.go
index ef0ade23c7..db47e14e93 100644
--- a/test/live.go
+++ b/test/live.go
@@ -643,13 +643,3 @@ func good40() {
printnl() // ERROR "live at call to printnl: autotmp_[0-9]+ ret$"
_ = t
}
-
-func ddd1(x, y *int) { // ERROR "live at entry to ddd1: x y$"
- ddd2(x, y) // ERROR "live at call to ddd2: autotmp_[0-9]+$"
- printnl() // nothing live here. See issue 16996.
-}
-func ddd2(a ...*int) { // ERROR "live at entry to ddd2: a$"
- sink = a[0]
-}
-
-var sink *int