aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2023-01-10 15:22:11 -0800
committerMatthew Dempsky <mdempsky@google.com>2023-01-24 19:47:54 +0000
commitffbd194f5cf399a98578ea950c969d07a751ecfd (patch)
tree42873a3df3058d65e33f6045bc40e73fc3e5eb6e /test
parent083d94f69c35b2244ea43738c1d28aa5d9e6d567 (diff)
downloadgo-ffbd194f5cf399a98578ea950c969d07a751ecfd.tar.xz
test: remove TODO in issue20250.go
This has been investigated and explained on the issue tracker. Fixes #54402. Change-Id: I4d8b971faa810591983ad028b7db16411f3b3b4a Reviewed-on: https://go-review.googlesource.com/c/go/+/461456 Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/fixedbugs/issue20250.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/fixedbugs/issue20250.go b/test/fixedbugs/issue20250.go
index 7c6e796e8e..a6283c7595 100644
--- a/test/fixedbugs/issue20250.go
+++ b/test/fixedbugs/issue20250.go
@@ -14,12 +14,10 @@ type T struct {
s [2]string
}
-func f(a T) { // ERROR "live at entry to f: a"
+func f(a T) { // ERROR "live at entry to f: a$"
var e interface{} // ERROR "stack object e interface \{\}$"
- // TODO(go.dev/issue/54402): Investigate why "live at entry to
- // f.func1" is sensitive to regabi.
- func() { // ERROR "live at entry to f.func1: (a &e|&e a)"
- e = a.s // ERROR "live at call to convT: &e" "stack object a T$"
+ func() { // ERROR "live at entry to f.func1: &e a$"
+ e = a.s // ERROR "live at call to convT: &e$" "stack object a T$"
}()
// Before the fix, both a and e were live at the previous line.
_ = e