diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-08-24 06:25:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-24 06:25:47 +0200 |
commit | ce7f29e8e6628df209ecebb566f9cefc14243aaf (patch) | |
tree | e70a04d3bd577274ea5b0380f76043402b596fdc /tests/destructor/tnewruntime_misc.nim | |
parent | f2e8c39e851b1d1f55d387d80ae3d9f598a6ef0e (diff) | |
download | Nim-ce7f29e8e6628df209ecebb566f9cefc14243aaf.tar.gz |
fixes #11833 (#12018)
Diffstat (limited to 'tests/destructor/tnewruntime_misc.nim')
-rw-r--r-- | tests/destructor/tnewruntime_misc.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/destructor/tnewruntime_misc.nim b/tests/destructor/tnewruntime_misc.nim index c5f978a98..d6c03b9b0 100644 --- a/tests/destructor/tnewruntime_misc.nim +++ b/tests/destructor/tnewruntime_misc.nim @@ -75,5 +75,13 @@ proc selfAssign = selfAssign() +# bug #11833 +type FooAt = object + +proc testWrongAt() = + var x = @[@[FooAt()]] + +testWrongAt() + let (a, d) = allocCounters() discard cprintf("%ld new: %ld\n", a - unpairedEnvAllocs() - d, allocs) |