blob: 94c08ba39bffbfe89e0def703f9dc2f8a6c93f3b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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))
|