github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/test/execution/unsafe/sizeof_struct.go (about) 1 // RUN: llgo -o %t %s 2 // RUN: %t 2>&1 | FileCheck %s 3 4 // CHECK: 24 5 6 package main 7 8 import "unsafe" 9 10 type a struct { 11 a int16 12 b int32 13 c int8 14 d int64 15 } 16 17 func main() { 18 println(unsafe.Sizeof(a{})) 19 }