summary refs log tree commit diff stats
path: root/tests/stckovfl.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stckovfl.nim')
-rw-r--r--[-rwxr-xr-x]tests/stckovfl.nim8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/stckovfl.nim b/tests/stckovfl.nim
index 799fe0001..cbc893d2e 100755..100644
--- a/tests/stckovfl.nim
+++ b/tests/stckovfl.nim
@@ -1,8 +1,10 @@
 # To test stack overflow message
 
-proc over(a: int): int = 
-  if a == high(int): return
+proc over(a: int): int =
+  if a >= 10:
+    assert false
+    return
   result = over(a+1)+5
-  
+
 Echo($over(0))