aboutsummaryrefslogtreecommitdiff
path: root/test/newexpr.go
diff options
context:
space:
mode:
authorCarlos Amedee <carlos@golang.org>2026-01-21 15:45:40 -0500
committerCarlos Amedee <carlos@golang.org>2026-01-21 15:56:01 -0500
commiteec3c0ca956803db8a90dfd92ce4ebffebdaf9b4 (patch)
tree14ed37a5aa0fd9e80b547fd43086b2b137457726 /test/newexpr.go
parent4606a931d2b099f2c5e5619b797352607ee42225 (diff)
parent2baa1d17628bb2f09757617382b1e61f1f9f0ddd (diff)
downloadgo-eec3c0ca956803db8a90dfd92ce4ebffebdaf9b4.tar.xz
[release-branch.go1.26] all: merge master (2baa1d1) into release-branch.go1.26
For #76474. Change-Id: Ic50e288f99b731b62af9aa73ce6721f0f2f3596d
Diffstat (limited to 'test/newexpr.go')
-rw-r--r--test/newexpr.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/newexpr.go b/test/newexpr.go
index c9a8804d4e..00d753c572 100644
--- a/test/newexpr.go
+++ b/test/newexpr.go
@@ -37,3 +37,10 @@ func main() {
}
}
}
+
+// Regression test for ICE in staticdata.GlobalLinksym from
+// use of autotemp outside a function (go.dev/issue/77237).
+var (
+ x = new(0)
+ y = x
+)