typedef in namespace test
authorRobert Bradshaw <robertwb@math.washington.edu>
Tue, 30 Nov 2010 04:42:18 +0000 (20:42 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Tue, 30 Nov 2010 04:42:18 +0000 (20:42 -0800)
tests/run/cpp_namespaces.pyx

index e76a1d098b0bc9e1386d649ddc8f04a27ac675ce..40bf18de6349e8d8833068fe7d9c2d1534a3e070 100644 (file)
@@ -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