3 // Copyright 2023 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.
7 // The gofrontend used to mishandle this code due to a pass ordering issue.
8 // It was inconsistent as to whether unsafe.Sizeof(byte(0)) was a constant,
9 // and therefore as to whether it was a direct-iface type.
15 type A [unsafe.Sizeof(byte(0))]*byte
22 panic("F") // should never be called
25 type B [unsafe.Sizeof(F())]*byte
33 v := A{&b}.V() + B{&b}.V()