summaryrefslogtreecommitdiffstats
path: root/test/fixedbugs/issue46907.go
blob: bd82f4f2b100a9674a0dddb464befaa08dfe7d69 (plain)
1
2
3
4
5
6
7
8
9
10
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])[:]
}