From a274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 19 Nov 2011 15:45:51 +0100 Subject: got rid of 'accept' dir in the tests --- tests/run/toverflw2.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 tests/run/toverflw2.nim (limited to 'tests/run/toverflw2.nim') diff --git a/tests/run/toverflw2.nim b/tests/run/toverflw2.nim new file mode 100755 index 000000000..f7fe3d574 --- /dev/null +++ b/tests/run/toverflw2.nim @@ -0,0 +1,10 @@ +discard """ + file: "toverflw2.nim" + outputsub: "Error: unhandled exception: over- or underflow [EOverflow]" + exitcode: "1" +""" +var a : int32 = 2147483647 +var b : int32 = 2147483647 +var c = a + b + + -- cgit 1.4.1-2-gfad0