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

"""
>>> 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))