diff options
Diffstat (limited to 'tests/run/cpp_classes_def.pyx')
-rw-r--r-- | tests/run/cpp_classes_def.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run/cpp_classes_def.pyx b/tests/run/cpp_classes_def.pyx index e36fc4fbd..855de7051 100644 --- a/tests/run/cpp_classes_def.pyx +++ b/tests/run/cpp_classes_def.pyx @@ -21,7 +21,7 @@ cdef cppclass RegularPolygon(Shape): __init__(int n, float radius): this.n = n this.radius = radius - float area() const: + float area() noexcept const: cdef double theta = pi / this.n return this.radius * this.radius * sin(theta) * cos(theta) * this.n void do_with() except *: |