Merge branch 'purepy-shadow'
[cython.git] / tests / compile / arrayargs.pyx
1 # mode: compile
2
3 cdef extern from *:
4
5     cdef void foo(int[])
6
7     ctypedef int MyInt
8     cdef void foo(MyInt[])
9
10     struct MyStruct:
11         pass
12     cdef void bar(MyStruct[])
13
14     ctypedef MyStruct* MyStructP
15     cdef void baz(MyStructP[])
16
17 cdef struct OtherStruct:
18     int a
19
20 a = sizeof(int[23][34])
21 b = sizeof(OtherStruct[43])
22
23 DEF COUNT = 4
24 c = sizeof(int[COUNT])
25 d = sizeof(OtherStruct[COUNT])
26