projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e093225
)
test case for inlined function
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 23 Nov 2008 19:11:42 +0000
(20:11 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 23 Nov 2008 19:11:42 +0000
(20:11 +0100)
tests/run/inline.pyx
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/run/inline.pyx
b/tests/run/inline.pyx
new file mode 100644
(file)
index 0000000..
4c3e842
--- /dev/null
+++ b/
tests/run/inline.pyx
@@ -0,0
+1,12
@@
+__doc__ = u"""
+>>> test(3)
+3
+"""
+
+def test(x):
+ return retinput(x)
+
+cdef inline int retinput(int x):
+ o = x
+ return o
+