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 // Unified frontend generated unnecessary temporaries for expressions
8 // within unsafe.Sizeof, etc functions.
14 func F[G int](g G) (uintptr, uintptr, uintptr) {
20 return unsafe.Sizeof(s{g, make([]int, (<-c)())}),
21 unsafe.Alignof(s{g, make([]int, (<-c)())}),
22 unsafe.Offsetof(s{g, make([]int, (<-c)())}.x)