From: Stefan Behnel Date: Sat, 26 Apr 2008 12:38:56 +0000 (+0200) Subject: simpler test case for extern class subtyping X-Git-Tag: 0.9.6.14~20^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=876888fc392bb3ef17e9128d3ae0b971122e77d8;p=cython.git simpler test case for extern class subtyping --- diff --git a/tests/compile/pylistsubtype.pyx b/tests/compile/pylistsubtype.pyx new file mode 100644 index 00000000..fefcade7 --- /dev/null +++ b/tests/compile/pylistsubtype.pyx @@ -0,0 +1,9 @@ +cdef extern from *: + ctypedef class __builtin__.list [ object PyListObject ]: + pass + +cdef class Sub2(list): + cdef char character + +cdef class Sub1(Sub2): + cdef char character