Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
55ad7f70
Commit
55ad7f70
authored
Nov 28, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case for ticket #601
parent
7a63d1e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-0
tests/bugs.txt
tests/bugs.txt
+1
-0
tests/run/for_from_pyvar_loop_T601.pyx
tests/run/for_from_pyvar_loop_T601.pyx
+54
-0
tests/run/for_from_pyvar_loop_T601_extern_def.h
tests/run/for_from_pyvar_loop_T601_extern_def.h
+2
-0
No files found.
tests/bugs.txt
View file @
55ad7f70
...
...
@@ -17,6 +17,7 @@ closure_inside_cdef_T554
ipow_crash_T562
pure_mode_cmethod_inheritance_T583
genexpr_iterable_lookup_T600
for_from_pyvar_loop_T601
# CPython regression tests that don't current work:
pyregr.test_threadsignals
...
...
tests/run/for_from_pyvar_loop_T601.pyx
0 → 100644
View file @
55ad7f70
cdef
unsigned
long
size2
():
return
3
def
for_from_plain_ulong
():
"""
>>> for_from_plain_ulong()
0
1
2
"""
cdef
object
j
=
0
for
j
from
0
<=
j
<
size2
():
print
j
def
for_in_plain_ulong
():
"""
>>> for_in_plain_ulong()
0
1
2
"""
cdef
object
j
=
0
for
j
in
range
(
size2
()):
print
j
cdef
extern
from
"for_from_pyvar_loop_T601_extern_def.h"
:
ctypedef
unsigned
long
Ulong
cdef
Ulong
size
():
return
3
def
for_from_ctypedef_ulong
():
"""
>>> for_from_ctypedef_ulong()
0
1
2
"""
cdef
object
j
=
0
for
j
from
0
<=
j
<
size
():
print
j
def
for_in_ctypedef_ulong
():
"""
>>> for_in_ctypedef_ulong()
0
1
2
"""
cdef
object
j
=
0
for
j
in
range
(
size
()):
print
j
tests/run/for_from_pyvar_loop_T601_extern_def.h
0 → 100644
View file @
55ad7f70
typedef
unsigned
long
Ulong
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment