Cython has moved to github.
cython-devel
view tests/run/unsigned.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 | |
| children | 0310198e281e |
line source
1 __doc__ = """
2 >>> test_signed()
3 3 <type 'int'>
4 9 <type 'long'>
5 6 <type 'long'>
6 12 <type 'long'>
7 """
10 cdef int i = 1
11 cdef long l = 2
12 cdef unsigned int ui = 4
13 cdef unsigned long ul = 8
15 def test_signed():
16 print i + l, type(i+l)
17 print i + ul, type(i+ul)
18 print ui + l, type(ui+l)
19 print ui + ul, type(ui+ul)
