--- /dev/null
+int a = 1;
\ No newline at end of file
--- /dev/null
+__doc__ = """
+ >>> test()
+ 1, 2, 3, 4, 5
+"""
+
+# Make sure all of these happen in order.
+
+cdef extern from "a.h":
+ cdef int a
+
+from b cimport b
+
+cdef extern from "c.h":
+ cdef int c
+
+from indirect_d cimport d
+
+cdef extern from "e.h":
+ cdef int e
+
+def test():
+ print a, b, c, d, e
--- /dev/null
+int b = a+1;
\ No newline at end of file
--- /dev/null
+cdef extern from "b.h":
+ cdef int b
--- /dev/null
+int c = b+1;
\ No newline at end of file
--- /dev/null
+int d = c+1;
\ No newline at end of file
--- /dev/null
+cdef extern from "d.h":
+ cdef int d
--- /dev/null
+int e = d+1;
\ No newline at end of file
--- /dev/null
+from d cimport d
\ No newline at end of file