From 6c01078922830dbd50efeac385f043798e540ec3 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 18 Feb 2011 14:34:28 -0500 Subject: [PATCH] Flesh out tests/compile/cpdef.pyx to test cdef-ed enums, structs, and unions. --- tests/compile/cpdef.pyx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 -- 2.26.2