From: Matthew Dempsky Date: Tue, 12 Nov 2019 19:24:17 +0000 (-0800) Subject: test: add another test case for #35518 X-Git-Tag: go1.14beta1~225 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=00e14afa0d7afdd710ef16080f0fdcbc4abd951a;p=gostls13.git test: add another test case for #35518 Updates #35518. Change-Id: Icd052c8c68aae32696b5831a29e04cc4cb224b06 Reviewed-on: https://go-review.googlesource.com/c/go/+/206820 Run-TryBot: Matthew Dempsky Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/test/fixedbugs/issue35518.go b/test/fixedbugs/issue35518.go index 18a02d4a82..52a0ae7e62 100644 --- a/test/fixedbugs/issue35518.go +++ b/test/fixedbugs/issue35518.go @@ -34,3 +34,11 @@ func f2() { m := n2 // ERROR "." sink = &m } + +func f3() { + var n1, n2 Node // ERROR "." + n1.Orig = &n1 + n1.Orig = &n2 + + sink = n1.Orig.Orig +}