Commit aee166ac authored by Robert Bradshaw's avatar Robert Bradshaw

typedef in namespace test

parent 138e5cbc
cdef extern from "cpp_namespaces_helper.h" namespace "A": cdef extern from "cpp_namespaces_helper.h" namespace "A":
ctypedef int A_t ctypedef int A_t
A_t A_func(A_t first, 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": cdef extern from "cpp_namespaces_helper.h" namespace "outer":
int outer_value int outer_value
...@@ -26,3 +27,9 @@ def test_nested(): ...@@ -26,3 +27,9 @@ def test_nested():
print outer_value print outer_value
print inner_value print inner_value
def test_typedef(A_t a):
"""
>>> test_typedef(3)
3
"""
return a
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment