Cython has moved to github.

cython-devel

view tests/run/return.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 585d725fe537
children 82d312a9f1fc
line source
1 __doc__ = u"""
2 >>> f('test')
3 >>> test_g()
4 >>> test_h(5)
5 5
6 """
8 def f(a):
9 return
10 return a
11 return 42
13 cdef void g():
14 return
16 cdef int h(a):
17 cdef int i
18 i = a
19 return i
21 def test_g():
22 g()
24 def test_h(i):
25 return h(i)