simpler test case for extern class subtyping
authorStefan Behnel <scoder@users.berlios.de>
Sat, 26 Apr 2008 12:38:56 +0000 (14:38 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 26 Apr 2008 12:38:56 +0000 (14:38 +0200)
tests/compile/pylistsubtype.pyx [new file with mode: 0644]

diff --git a/tests/compile/pylistsubtype.pyx b/tests/compile/pylistsubtype.pyx
new file mode 100644 (file)
index 0000000..fefcade
--- /dev/null
@@ -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