aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGerrit Code Review <noreply-gerritcodereview@google.com>2021-06-25 15:51:12 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-06-25 15:51:12 +0000
commit373ca3a846d64733b0391dcdcc55631904a3c41c (patch)
tree56fa1d9b8b2b6965ba10d2ceff1594d54b3f96ab /test
parent1b60284c0a375de2349540771a3bc1a719ddf52e (diff)
parentac2de11cfbea4e7979a5151e5fb03d70cdb3955f (diff)
downloadgo-373ca3a846d64733b0391dcdcc55631904a3c41c.tar.gz
go-373ca3a846d64733b0391dcdcc55631904a3c41c.zip
Merge "[dev.typeparams] all: merge master (37f9a8f) into dev.typeparams" into dev.typeparams
Diffstat (limited to 'test')
-rw-r--r--test/fixedbugs/issue46907.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/fixedbugs/issue46907.go b/test/fixedbugs/issue46907.go
new file mode 100644
index 0000000000..bd82f4f2b1
--- /dev/null
+++ b/test/fixedbugs/issue46907.go
@@ -0,0 +1,11 @@
+// compile
+
+// Copyright 2021 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
+
+func f(b []byte) []byte {
+ return (*[32]byte)(b[:32])[:]
+}