diff options
Diffstat (limited to 'tests/run/cpp_locals_directive_unused.pyx')
-rw-r--r-- | tests/run/cpp_locals_directive_unused.pyx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run/cpp_locals_directive_unused.pyx b/tests/run/cpp_locals_directive_unused.pyx new file mode 100644 index 000000000..429e64beb --- /dev/null +++ b/tests/run/cpp_locals_directive_unused.pyx @@ -0,0 +1,14 @@ +# mode: run +# tag: cpp, cpp17, no-cpp-locals +# no cpp_locals because this test is already run with cpp_locals explicitly set + +# cython: cpp_locals=True + +cdef cppclass C: + C() + +cdef class PyC: + """ + >>> PyC() and None # doesn't really do anything, but should run + """ + cdef C # this limited usage wasn't triggering the creation of utility code |