Merged pull request #12 from bhy/T423.
[cython.git] / tests / compile / cpp_structs.pyx
1 # tag: cpp
2 # mode: compile
3
4 cdef extern from "point.h" namespace "geometry":
5
6     cdef struct Point:
7         double x
8         double y
9         int color
10
11 cdef Point p = Point(0.0, 0.0, 0)
12 the_point = p