From: daniloaf Date: Fri, 12 Feb 2010 08:56:19 +0000 (-0300) Subject: Fix on test 'cpp_classes' X-Git-Tag: 0.13.beta0~346 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=83949399e8ce72e19d542f5b5e8941edf401fd5b;p=cython.git Fix on test 'cpp_classes' --- diff --git a/tests/run/cpp_classes.pyx b/tests/run/cpp_classes.pyx index 9c51aed9..438e3ffa 100644 --- a/tests/run/cpp_classes.pyx +++ b/tests/run/cpp_classes.pyx @@ -19,6 +19,7 @@ cdef extern from "shapes.h" namespace shapes: cdef cppclass Rectangle(Shape): int width int height + Rectangle() Rectangle(int, int) cdef cppclass Square(Rectangle): diff --git a/tests/run/shapes.h b/tests/run/shapes.h index 033a30b8..aa24ba3b 100644 --- a/tests/run/shapes.h +++ b/tests/run/shapes.h @@ -17,6 +17,7 @@ namespace shapes { class Rectangle : public Shape { public: + Rectangle() { } Rectangle(int width, int height) { this->width = width;