summaryrefslogtreecommitdiff
path: root/tests/run/packedstruct_T290.pyx
blob: 203008ca72508b3514fd0d40aaf10e12caa2a55c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# ticket: 290

"""
>>> f()
(9, 9)
"""

cdef packed struct MyCdefStruct:
    char a
    double b

ctypedef packed struct MyCTypeDefStruct:
    char a
    double b

def f():
    return (sizeof(MyCdefStruct), sizeof(MyCTypeDefStruct))