diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-07-04 07:37:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-04 07:37:24 +0200 |
commit | 1854d29781aff913ca6892cbf73df91b0399397e (patch) | |
tree | 4a71bc7988c753ef1acab28776edec691c6d27bd /tests/casestmt | |
parent | 695154970d839add2fbbe9754e9e638511120729 (diff) | |
download | Nim-1854d29781aff913ca6892cbf73df91b0399397e.tar.gz |
scoped memory management (#14790)
* fixes the regressions * closes #13936 * scope based memory management implemented * enabled tcontrolflow.nim test case * final cleanups
Diffstat (limited to 'tests/casestmt')
-rw-r--r-- | tests/casestmt/t12785.nim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/casestmt/t12785.nim b/tests/casestmt/t12785.nim index bf0f30d42..7177fb9c2 100644 --- a/tests/casestmt/t12785.nim +++ b/tests/casestmt/t12785.nim @@ -3,6 +3,8 @@ discard """ output: '''copied copied 2 +destroyed +destroyed copied copied 2 @@ -37,9 +39,9 @@ proc test(a: range[0..1], arg: ObjWithDestructor) = inc iteration case a - of 0: - assert false - of 1: + of 0: + assert false + of 1: echo b if iteration == 2: break |