Files
llgo/cl/_testrt/structsize/in.go
2025-04-03 16:26:11 +08:00

20 lines
192 B
Go

package main
import (
"unsafe"
"github.com/goplus/lib/c"
)
type Foo struct {
A byte
B uint8
C uint16
D byte
E [8]int8
}
func main() {
c.Printf(c.Str("%d"), unsafe.Sizeof(Foo{}))
}