Commit 7e01eaac authored by Robert Bradshaw's avatar Robert Bradshaw

Test for struct pointer loop.

parent 7c71fe4a
......@@ -333,6 +333,20 @@ def loop_over_int_array():
pass
return typeof(i)
cdef struct MyStruct:
int a
def loop_over_struct_ptr():
"""
>>> print( loop_over_struct_ptr() )
MyStruct
"""
cdef MyStruct a_list[10]
cdef MyStruct *a_ptr = a_list
for i in a_list[:10]:
pass
return typeof(i)
cdef unicode retu():
return u"12345"
......
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