Files
Nim/tests/float/tfloat1.nim
2018-12-11 21:23:21 +01:00

13 lines
290 B
Nim

discard """
outputsub: "Error: unhandled exception: FPU operation caused an overflow [FloatOverflowError]"
exitcode: "1"
"""
# Test new floating point exceptions
{.floatChecks: on.}
var x = 0.8
var y = 0.0
echo x / y #OUT Error: unhandled exception: FPU operation caused an overflow