summaryrefslogtreecommitdiffstats
path: root/test/fixedbugs/issue66096.go
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:27:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:27:10 +0000
commite071df12d03e9bee16fa8e2149cefdd2563c073b (patch)
treedfb7f90b349aec3dbe99f0ec04cb2ca65dec92c7 /test/fixedbugs/issue66096.go
parentAdding debian version 1.22.1-1. (diff)
downloadgolang-1.22-e071df12d03e9bee16fa8e2149cefdd2563c073b.tar.xz
golang-1.22-e071df12d03e9bee16fa8e2149cefdd2563c073b.zip
Merging upstream version 1.22.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--test/fixedbugs/issue66096.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/fixedbugs/issue66096.go b/test/fixedbugs/issue66096.go
new file mode 100644
index 0000000..f8621a1
--- /dev/null
+++ b/test/fixedbugs/issue66096.go
@@ -0,0 +1,17 @@
+// compile
+
+// Copyright 2024 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package p
+
+type Message struct {
+ Header map[string][]string
+}
+
+func f() {
+ m := Message{Header: map[string][]string{}}
+ m.Header[""] = append([]string(m.Header[""]), "")
+ _ = m
+}