summaryrefslogtreecommitdiff
path: root/tests/compile/fused_wraparound.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/fused_wraparound.pyx')
-rw-r--r--tests/compile/fused_wraparound.pyx22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/compile/fused_wraparound.pyx b/tests/compile/fused_wraparound.pyx
new file mode 100644
index 000000000..e9facf9c1
--- /dev/null
+++ b/tests/compile/fused_wraparound.pyx
@@ -0,0 +1,22 @@
+# mode: compile
+# tag: fused, werror
+
+"""
+Very short test for https://github.com/cython/cython/issues/3492
+(Needs its own file since werror fails on the main fused-test files)
+wraparound and boundscheck directives shouldn't break the fused
+dispatcher function
+"""
+
+cimport cython
+
+ctypedef fused fused_t:
+ str
+ int
+ long
+ complex
+
+@cython.wraparound(False)
+@cython.boundscheck(False)
+def func(fused_t a, cython.floating b):
+ return a, b