diff options
author | Keith Randall <khr@golang.org> | 2016-09-06 21:08:21 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2016-09-07 06:59:22 +0000 |
commit | 83c73a85db84a04c8e60e52cfa348fc6b675fbf7 (patch) | |
tree | cc78294649df5a1b122e46eb499ffb4f2dbbe523 /test/live.go | |
parent | ca264cdc6247141a1e042f38c83fff4783f03324 (diff) | |
download | go-83c73a85db84a04c8e60e52cfa348fc6b675fbf7.tar.gz go-83c73a85db84a04c8e60e52cfa348fc6b675fbf7.zip |
cmd/compile: ignore contentEscapes for marking nodes as escaping
Redo of CL 28575 with fixed test.
We're in a pre-KeepAlive world for a bit yet, the old tests
were in a client which was in a post-KeepAlive world.
Change-Id: I114fd630339d761ab3306d1d99718d3cb973678d
Reviewed-on: https://go-review.googlesource.com/28582
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'test/live.go')
-rw-r--r-- | test/live.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/live.go b/test/live.go index db47e14e93..c3985a37a2 100644 --- a/test/live.go +++ b/test/live.go @@ -643,3 +643,14 @@ 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: x y autotmp_[0-9]+$" + printnl() // ERROR "live at call to printnl: x y$" + // Note: no autotmp live at printnl. See issue 16996. +} +func ddd2(a ...*int) { // ERROR "live at entry to ddd2: a$" + sink = a[0] +} + +var sink *int |