From: Stefan Behnel Date: Sun, 8 Feb 2009 08:25:28 +0000 (+0100) Subject: new test case for bug 208 X-Git-Tag: 0.11.rc~88 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=75519952e9ab3a5814f839701db261cd7dba4f01;p=cython.git new test case for bug 208 --- diff --git a/tests/bugs/empty_for_loop_T208.pyx b/tests/bugs/empty_for_loop_T208.pyx new file mode 100644 index 00000000..fb5906dd --- /dev/null +++ b/tests/bugs/empty_for_loop_T208.pyx @@ -0,0 +1,18 @@ +__doc__ = u""" + >>> go_py_empty() + 20 + >>> go_c_empty() + 20 +""" + +def go_py_empty(): + i = 20 + for i in range(4,0): + print u"Spam!" + return i + +def go_c_empty(): + cdef int i = 20 + for i in range(4,0): + print u"Spam!" + return i