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: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
diff --git a/test/fixedbugs/issue35518.go b/test/fixedbugs/issue35518.go
index 18a02d4..52a0ae7 100644
--- a/test/fixedbugs/issue35518.go
+++ b/test/fixedbugs/issue35518.go
@@ -34,3 +34,11 @@
 	m := n2 // ERROR "."
 	sink = &m
 }
+
+func f3() {
+	var n1, n2 Node // ERROR "."
+	n1.Orig = &n1
+	n1.Orig = &n2
+
+	sink = n1.Orig.Orig
+}