Commit e1fd7949 authored by Ian Henriksen's avatar Ian Henriksen

Add tests for passing a non const variable as a const qualified

function parameter.
parent 16ad9e21
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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment