projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb7c70c
)
Const temp regression test.
author
Robert Bradshaw
<robertwb@gmail.com>
Tue, 26 Mar 2013 06:38:07 +0000
(23:38 -0700)
committer
Robert Bradshaw
<robertwb@gmail.com>
Tue, 26 Mar 2013 06:38:07 +0000
(23:38 -0700)
tests/compile/const_decl.pyx
patch
|
blob
|
history
diff --git
a/tests/compile/const_decl.pyx
b/tests/compile/const_decl.pyx
index
38040c6
..
fa293fb
100644
(file)
--- a/
tests/compile/const_decl.pyx
+++ b/
tests/compile/const_decl.pyx
@@
-5,3
+5,7
@@
cdef const_args(const int a, const int *b, const (int*) c):
print b[0]
b = NULL # OK, the pointer itself 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)