Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
e1fd7949
Commit
e1fd7949
authored
Mar 03, 2016
by
Ian Henriksen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for passing a non const variable as a const qualified
function parameter.
parent
16ad9e21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tests/run/non_const_as_const_arg.pyx
tests/run/non_const_as_const_arg.pyx
+10
-0
No files found.
tests/run/non_const_as_const_arg.pyx
0 → 100644
View file @
e1fd7949
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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment