diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-06-26 06:55:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-26 06:55:43 +0200 |
commit | 0f868b587bf4b17c20f76383e52f56b27703112a (patch) | |
tree | e2b8b42b9b0a5ff50407e123c42254c29ce03be2 /tests | |
parent | 2f1a1b710621e9027babdd36561f8c9958930481 (diff) | |
download | Nim-0f868b587bf4b17c20f76383e52f56b27703112a.tar.gz |
fixes #11563 (#11594)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/destructor/tsimpletable.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/destructor/tsimpletable.nim b/tests/destructor/tsimpletable.nim index 36546b9f6..07efc86d9 100644 --- a/tests/destructor/tsimpletable.nim +++ b/tests/destructor/tsimpletable.nim @@ -20,5 +20,17 @@ proc main = main() +# bug #11563 +type + MyTypeType = enum + Zero, One + MyType = object + case kind: MyTypeType + of Zero: + s*: seq[MyType] + of One: + x*: int +var t: MyType + let (a, d) = allocCounters() discard cprintf("%ld %ld new: %ld\n", a, d, allocs) |