(cherry picked from commit 289b5e9ef9)
This commit is contained in:
Araq
2019-08-12 13:58:35 +02:00
committed by narimiran
parent 3a064ee3c0
commit 07ea817ab1
4 changed files with 26 additions and 12 deletions

View File

@@ -52,5 +52,11 @@ type
x*: int
var t: MyType
# bug #11254
proc test(p: owned proc()) =
let x = (proc())p
test(proc() = discard)
let (a, d) = allocCounters()
discard cprintf("%ld new: %ld\n", a - unpairedEnvAllocs() - d, allocs)