diff options
Diffstat (limited to 'tests/accept/run/toverflw2.nim')
-rwxr-xr-x | tests/accept/run/toverflw2.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/accept/run/toverflw2.nim b/tests/accept/run/toverflw2.nim index b54bda9fa..14a77ebad 100755 --- a/tests/accept/run/toverflw2.nim +++ b/tests/accept/run/toverflw2.nim @@ -1,5 +1,11 @@ +discard """ + file: "toverflw2.nim" + output: "Error: unhandled exception: over- or underflow [EOverflow]" +""" var a : int32 = 2147483647 var b : int32 = 2147483647 var c = a + b + + |