This commit is contained in:
Araq 2019-08-12 13:58:35 +02:00
commit 289b5e9ef9
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)