new test case for bug 208
authorStefan Behnel <scoder@users.berlios.de>
Sun, 8 Feb 2009 08:25:28 +0000 (09:25 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 8 Feb 2009 08:25:28 +0000 (09:25 +0100)
tests/bugs/empty_for_loop_T208.pyx [new file with mode: 0644]

diff --git a/tests/bugs/empty_for_loop_T208.pyx b/tests/bugs/empty_for_loop_T208.pyx
new file mode 100644 (file)
index 0000000..fb5906d
--- /dev/null
@@ -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