diff options
Diffstat (limited to 'tests/errors/nonconst_excval.pyx')
-rw-r--r-- | tests/errors/nonconst_excval.pyx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/errors/nonconst_excval.pyx b/tests/errors/nonconst_excval.pyx new file mode 100644 index 000000000..ad80f2e27 --- /dev/null +++ b/tests/errors/nonconst_excval.pyx @@ -0,0 +1,12 @@ +# mode: error + +import math + +cdef double cfunc(double x) except math.nan: + return x + + +_ERRORS = """ +5:39: Exception value must be constant +5:39: Not allowed in a constant expression +""" |