Debian Codegraph @

test/fixedbugs/issue48092.go

raw
1 // compile -B
2
3 // Copyright 2021 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 // Make sure that we can at least compile this code
8 // successfully with -B. We can't ever produce the right
9 // answer at runtime with -B, as the access must panic.
10
11 package p
12
13 type A [0]byte
14
15 func (a *A) Get(i int) byte {
16 return a[i]
17 }