This commit is contained in:
Araq 2019-06-26 15:33:26 +02:00
commit 0a81b038fd
2 changed files with 31 additions and 12 deletions

View file

@ -1,7 +1,7 @@
discard """
cmd: '''nim c --newruntime $file'''
output: '''OK 2
4 1'''
output: '''OK 3
5 1'''
"""
import strutils, math
@ -36,6 +36,19 @@ except ValueError:
except:
discard
# bug #11577
proc newError*: owned(ref Exception) {.noinline.} =
new(result)
proc mainC =
raise newError()
try:
mainC()
except:
inc ok
echo "OK ", ok
let (a, d) = allocCounters()