Cython has moved to github.

cython-devel

view tests/run/cdefassign.pyx @ 1622:4f0327bdebc9

test for temp allocation bug in call
author Robert Bradshaw <robertwb@math.washington.edu>
date Sat Jan 17 01:25:34 2009 -0800 (3 years ago)
parents 54c473a7b7b7
children 0310198e281e
line source
2 __doc__ = """
3 >>> test(1, 2)
4 4 1 2 2 0 7 8
5 """
7 cdef int g = 7
9 def test(x, int y):
10 if True:
11 before = 0
12 cdef int a = 4, b = x, c = y, *p = &y
13 cdef object o = int(8)
14 print a, b, c, p[0], before, g, o
16 # Also test that pruning cdefs doesn't hurt
17 def empty():
18 cdef int i