projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97882d6
)
Fix on test 'cpp_classes'
author
daniloaf
<none@none>
Fri, 12 Feb 2010 08:56:19 +0000
(
05:56
-0300)
committer
daniloaf
<none@none>
Fri, 12 Feb 2010 08:56:19 +0000
(
05:56
-0300)
tests/run/cpp_classes.pyx
patch
|
blob
|
history
tests/run/shapes.h
patch
|
blob
|
history
diff --git
a/tests/run/cpp_classes.pyx
b/tests/run/cpp_classes.pyx
index 9c51aed9da67dee0a4abcc6a483a03d3822174a0..438e3ffab867b0be4b2d28c518808ef63fe8c22a 100644
(file)
--- 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 033a30b83ae5ac663b50dbbc037f44e5294fe3b6..aa24ba3b5de05c2a19a1f8162f419ee2915913ee 100644
(file)
--- 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;