Const temp regression test.
authorRobert Bradshaw <robertwb@gmail.com>
Tue, 26 Mar 2013 06:38:07 +0000 (23:38 -0700)
committerRobert Bradshaw <robertwb@gmail.com>
Tue, 26 Mar 2013 06:38:07 +0000 (23:38 -0700)
tests/compile/const_decl.pyx

index 38040c6..fa293fb 100644 (file)
@@ -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)