mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
21 lines
436 B
Nim
21 lines
436 B
Nim
discard """
|
|
disabled: "arm64"
|
|
"""
|
|
|
|
# bug #11792
|
|
type
|
|
m256d {.importc: "__m256d", header: "immintrin.h".} = object
|
|
|
|
MyKind = enum
|
|
k1, k2, k3
|
|
|
|
MyTypeObj = object
|
|
kind: MyKind
|
|
x: int
|
|
amount: UncheckedArray[m256d]
|
|
|
|
|
|
# The sizeof(MyTypeObj) is not equal to (sizeof(int) + sizeof(MyKind)) due to
|
|
# alignment requirement of m256d, make sure Nim understands that
|
|
doAssert(sizeof(MyTypeObj) > sizeof(int) + sizeof(MyKind))
|