From 75519952e9ab3a5814f839701db261cd7dba4f01 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 8 Feb 2009 09:25:28 +0100 Subject: [PATCH] new test case for bug 208 --- tests/bugs/empty_for_loop_T208.pyx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/bugs/empty_for_loop_T208.pyx 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 -- 2.26.2