Commit 00e14afa authored by Matthew Dempsky's avatar Matthew Dempsky

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 <mdempsky@google.com>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent a3ffb8a1
......@@ -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
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment