summaryrefslogtreecommitdiff
path: root/tests/run/pure_fused.pxd
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/pure_fused.pxd')
-rw-r--r--tests/run/pure_fused.pxd9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/pure_fused.pxd b/tests/run/pure_fused.pxd
new file mode 100644
index 000000000..c00105087
--- /dev/null
+++ b/tests/run/pure_fused.pxd
@@ -0,0 +1,9 @@
+cimport cython
+
+ctypedef fused NotInPy:
+ int
+ float
+
+cdef class TestCls:
+ @cython.locals(loc = NotInPy)
+ cpdef cpfunc(self, NotInPy arg)