Commit cd4b9f1b authored by Robert Bradshaw's avatar Robert Bradshaw

Test for #include order

parent e7354e55
int a = 1;
\ No newline at end of file
__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
int b = a+1;
\ No newline at end of file
cdef extern from "b.h":
cdef int b
int c = b+1;
\ No newline at end of file
int d = c+1;
\ No newline at end of file
cdef extern from "d.h":
cdef int d
int e = d+1;
\ No newline at end of file
from d cimport d
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment