summary refs log tree commit diff stats
path: root/tests/exception/t22469.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exception/t22469.nim')
-rw-r--r--tests/exception/t22469.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/exception/t22469.nim b/tests/exception/t22469.nim
new file mode 100644
index 000000000..a76c74967
--- /dev/null
+++ b/tests/exception/t22469.nim
@@ -0,0 +1,16 @@
+discard """
+  exitcode: 1
+  output: '''
+First top-level statement of ModuleB
+m22469.nim(3)            m22469
+fatal.nim(53)            sysFatal
+Error: unhandled exception: over- or underflow [OverflowDefect]
+'''
+"""
+
+# bug #22469
+
+# ModuleA
+import m22469
+echo "ModuleA about to have exception"
+echo high(int) + 1