Buffer type checking cleanup/rewrite (now uses use_utility_code)
[cython.git] / tests / broken / inplace_lhs.pyx
1 cdef struct S:
2     int q
3
4 cdef int f() except -1:
5     cdef int i, j, k
6     cdef float x, y, z
7     cdef object a, b, c, d, e
8     cdef int m[3]
9     cdef S s
10     global g
11     i += j + k
12     x += y + z
13     x += i
14     a += b + c
15     g += a
16     m[i] += j
17     a[i] += b + c
18     a[b + c] += d
19     (a + b)[c] += d
20     a[i : j] += b
21     (a + b)[i : j] += c
22     a.b += c + d
23     (a + b).c += d
24     s.q += i