Commit a3f8f264 authored by Stefan Behnel's avatar Stefan Behnel

make some tests from 'broken' directory usable

--HG--
rename : tests/broken/inplace_lhs.pyx => tests/compile/inplace_lhs.pyx
rename : tests/broken/inplace_ops.pyx => tests/compile/inplace_ops.pyx
parent 140c40d4
# mode: compile
cdef struct S:
int q
cdef int f() except -1:
cdef int i, j, k
cdef float x, y, z
cdef object a, b, c, d, e
def test():
cdef int i = 1, j = 2, k = 3
cdef float x = 1, y = 2, z = 3
cdef object a = 1, b = 2, c = 3, d = 4, e = 5
cdef int m[3]
cdef S s
m[0] = 0
m[1] = 1
m[2] = 1
cdef S s = [1]
global g
i += j + k
x += y + z
......
cdef int f() except -1:
cdef object a, b
cdef char *p
# mode: compile
def test():
cdef object a = 1, b = 2
cdef char *p = 'abc'
a += b
a -= b
a *= b
......@@ -14,4 +16,4 @@ cdef int f() except -1:
a |= b
p += 42
p -= 42
p += a
#p += a # FIXME: should use pointer arithmetic, not string concat
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