Commit 621cd056 authored by Ivan Smirnov's avatar Ivan Smirnov Committed by Stefan Behnel

Add a test for namespaced struct with memoryview

parent 5abafe58
# tag: cpp
# mode: compile
from cython.view import array
cdef extern from "point.h" namespace "geometry":
cdef struct Point:
......@@ -10,3 +12,5 @@ cdef extern from "point.h" namespace "geometry":
cdef Point p = Point(0.0, 0.0, 0)
the_point = p
cdef Point[::1] ps = array((10,), itemsize=sizeof(Point), format='ddi')
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