diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:27:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:27:10 +0000 |
commit | 32c8b04ddb6829a3f5f7267a666b4caa3cf38a1f (patch) | |
tree | 6e5b1b98afaeadd19ba7fd4b710f71cbf187942e /test/fixedbugs/issue66096.go | |
parent | Adding upstream version 1.22.1. (diff) | |
download | golang-1.22-32c8b04ddb6829a3f5f7267a666b4caa3cf38a1f.tar.xz golang-1.22-32c8b04ddb6829a3f5f7267a666b4caa3cf38a1f.zip |
Adding upstream version 1.22.2.upstream/1.22.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | test/fixedbugs/issue66096.go | 17 |
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 +} |