github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/test/execution/unsafe/sizeof_array.go (about) 1 // RUN: llgo -o %t %s 2 // RUN: %t 2>&1 | FileCheck %s 3 4 // CHECK: 12 5 6 package main 7 8 import "unsafe" 9 10 type uint24 struct { 11 a uint16 12 b uint8 13 } 14 15 func main() { 16 var a [3]uint24 17 println(unsafe.Sizeof(a)) 18 }