This commit is contained in:
Andreas Rumpf 2019-08-24 06:25:47 +02:00 • committed by GitHub
commit ce7f29e8e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 22 deletions

View file

@ -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)