From e021a252964262e9f683c195187db6f13e9d8a95 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 23 Nov 2008 20:11:42 +0100 Subject: [PATCH] test case for inlined function --- tests/run/inline.pyx | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/run/inline.pyx 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 + -- 2.26.2