test case for inlined function
authorStefan Behnel <scoder@users.berlios.de>
Sun, 23 Nov 2008 19:11:42 +0000 (20:11 +0100)
committerStefan 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]

diff --git a/tests/run/inline.pyx b/tests/run/inline.pyx
new file mode 100644 (file)
index 0000000..4c3e842
--- /dev/null
@@ -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
+