From: Stefan Behnel Date: Sun, 23 Nov 2008 19:11:42 +0000 (+0100) Subject: test case for inlined function X-Git-Tag: 0.11-beta~224 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e021a252964262e9f683c195187db6f13e9d8a95;p=cython.git test case for inlined function --- diff --git a/tests/run/inline.pyx b/tests/run/inline.pyx new file mode 100644 index 00000000..4c3e8428 --- /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 +