diff --git a/tests/run/non_const_as_const_arg.pyx b/tests/run/non_const_as_const_arg.pyx new file mode 100644 index 0000000000000000000000000000000000000000..eca3d84ca3b0987b78f54deaf1c3b86ed439b9a8 --- /dev/null +++ b/tests/run/non_const_as_const_arg.pyx @@ -0,0 +1,10 @@ +cdef double f(const double a, const double b, const double c): + return a + b - c + +def test_non_const_as_const_arg(): + """ + >>> test_non_const_as_const_arg() + 1.0 + """ + cdef double a = 1., b = 1., c = 1. + return f(a, b, c)