summary refs log tree commit diff stats
path: root/tests/destructor/tnewruntime_misc.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-08-24 06:25:47 +0200
committerGitHub <noreply@github.com>2019-08-24 06:25:47 +0200
commitce7f29e8e6628df209ecebb566f9cefc14243aaf (patch)
treee70a04d3bd577274ea5b0380f76043402b596fdc /tests/destructor/tnewruntime_misc.nim
parentf2e8c39e851b1d1f55d387d80ae3d9f598a6ef0e (diff)
downloadNim-ce7f29e8e6628df209ecebb566f9cefc14243aaf.tar.gz
fixes #11833 (#12018)
Diffstat (limited to 'tests/destructor/tnewruntime_misc.nim')
-rw-r--r--tests/destructor/tnewruntime_misc.nim8
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)