From 16cb9327472b05ec32e52b3567413e481d8646d2 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 25 Mar 2013 23:38:07 -0700 Subject: [PATCH] Const temp regression test. --- tests/compile/const_decl.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/compile/const_decl.pyx b/tests/compile/const_decl.pyx index 38040c6..fa293fb 100644 --- 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) -- 2.7.4