From: Robert Bradshaw Date: Tue, 30 Nov 2010 04:42:18 +0000 (-0800) Subject: typedef in namespace test X-Git-Tag: 0.14.alpha0~39^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aee166aca42262918e9d3a2da80f49aacdc60cbc;p=cython.git typedef in namespace test --- diff --git a/tests/run/cpp_namespaces.pyx b/tests/run/cpp_namespaces.pyx index e76a1d09..40bf18de 100644 --- a/tests/run/cpp_namespaces.pyx +++ b/tests/run/cpp_namespaces.pyx @@ -1,6 +1,7 @@ cdef extern from "cpp_namespaces_helper.h" namespace "A": ctypedef int A_t A_t A_func(A_t first, A_t) + cdef void f(A_t) cdef extern from "cpp_namespaces_helper.h" namespace "outer": int outer_value @@ -26,3 +27,9 @@ def test_nested(): print outer_value print inner_value +def test_typedef(A_t a): + """ + >>> test_typedef(3) + 3 + """ + return a