Merged pull request #12 from bhy/T423.
[cython.git] / tests / compile / arrayargs.pyx
index 7a6429ec4a9972dee617e56ed4402bb4767f833f..bdc904075d1070ce51c6ea949cdd2006c469d919 100644 (file)
@@ -1,3 +1,5 @@
+# mode: compile
+
 cdef extern from *:
 
     cdef void foo(int[])
@@ -11,3 +13,14 @@ cdef extern from *:
 
     ctypedef MyStruct* MyStructP
     cdef void baz(MyStructP[])
+
+cdef struct OtherStruct:
+    int a
+
+a = sizeof(int[23][34])
+b = sizeof(OtherStruct[43])
+
+DEF COUNT = 4
+c = sizeof(int[COUNT])
+d = sizeof(OtherStruct[COUNT])
+