diff options
author | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-06-25 15:51:12 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-06-25 15:51:12 +0000 |
commit | 373ca3a846d64733b0391dcdcc55631904a3c41c (patch) | |
tree | 56fa1d9b8b2b6965ba10d2ceff1594d54b3f96ab /test | |
parent | 1b60284c0a375de2349540771a3bc1a719ddf52e (diff) | |
parent | ac2de11cfbea4e7979a5151e5fb03d70cdb3955f (diff) | |
download | go-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.go | 11 |
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])[:] +} |