]> Cypherpunks.ru repositories - gostls13.git/commit
test: add regress test for #27557
authorMatthew Dempsky <mdempsky@google.com>
Wed, 25 Sep 2019 00:35:15 +0000 (17:35 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 25 Sep 2019 17:06:15 +0000 (17:06 +0000)
commitf346a4c44c7200454d01c05879fbcd76a1ca9237
treeaedc700b06e7396c6f2738b6a956914b17217d33
parent8189a06190046cd69819ad1c6399943be0ee5c2d
test: add regress test for #27557

This commit just adds a regress test for a few of the important corner
cases that I identified in #27557, which turn out to not be tested
anywhere.

While here, annotate a few of the existing test cases where we could
improve escape analysis.

Updates #27557.

Change-Id: Ie57792a538f7899bb17915485fabc86100f469a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/197137
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/gc/escape.go
test/escape2.go
test/escape2n.go
test/fixedbugs/issue21709.go
test/fixedbugs/issue27557.go [new file with mode: 0644]