From: W. Trevor King Date: Fri, 18 Feb 2011 19:34:28 +0000 (-0500) Subject: Flesh out tests/compile/cpdef.pyx to test cdef-ed enums, structs, and unions. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6c01078922830dbd50efeac385f043798e540ec3;p=cython.git Flesh out tests/compile/cpdef.pyx to test cdef-ed enums, structs, and unions. --- diff --git a/tests/compile/cpdef.pyx b/tests/compile/cpdef.pyx index 1c3ed528..5db6b3e0 100644 --- a/tests/compile/cpdef.pyx +++ b/tests/compile/cpdef.pyx @@ -1,6 +1,25 @@ cdef class A: + cdef public int i + cdef readonly int j + cdef void *ptr + cpdef a(self): ma(self) cpdef ma(x): print x + +cdef struct S: + cdef public int i + cdef readonly int j + cdef void *ptr + +cdef union S: + cdef public int i + cdef readonly unsigned int j + cdef void *ptr + +cdef enum E: + cdef public i + cdef readonly j + k