1ctypedef int five_ints[5]
2
3def test_array_address(int ix, int x):
4 """
5 >>> test_array_address(0, 100)
6 100
7 >>> test_array_address(2, 200)
8 200
9 """
10 cdef five_ints a
11 a[:] = [1, 2, 3, 4, 5]
12 cdef five_ints *a_ptr = &a
13 a_ptr[0][ix] = x
14 return a[ix]
15