summaryrefslogtreecommitdiff
path: root/tests/run/inlinepxd_support.pxd
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/inlinepxd_support.pxd')
-rw-r--r--tests/run/inlinepxd_support.pxd6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run/inlinepxd_support.pxd b/tests/run/inlinepxd_support.pxd
index c2941e2b3..863f4eaf1 100644
--- a/tests/run/inlinepxd_support.pxd
+++ b/tests/run/inlinepxd_support.pxd
@@ -1,3 +1,9 @@
cdef inline int my_add(int a, int b=1, int c=0):
return a + b + c
+
+cdef inline index(list L):
+ # This function should *not* be affected by directives set in the outer scope, such as "wraparound".
+ # See https://github.com/cython/cython/issues/1071
+ return L[-1]
+