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
Boxiang Sun
cython
Commits
16cb9327
Commit
16cb9327
authored
Mar 25, 2013
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Const temp regression test.
parent
fb7c70c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tests/compile/const_decl.pyx
tests/compile/const_decl.pyx
+4
-0
No files found.
tests/compile/const_decl.pyx
View file @
16cb9327
...
@@ -5,3 +5,7 @@ cdef const_args(const int a, const int *b, const (int*) c):
...
@@ -5,3 +5,7 @@ cdef const_args(const int a, const int *b, const (int*) c):
print
b
[
0
]
print
b
[
0
]
b
=
NULL
# OK, the pointer itself is not const
b
=
NULL
# OK, the pointer itself is not const
c
[
0
]
=
4
# OK, the value is not const
c
[
0
]
=
4
# OK, the value is not const
def
call_const_args
(
x
):
cdef
int
k
=
x
const_args
(
x
,
&
k
,
&
k
)
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