diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-04-27 09:36:34 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-04-27 09:36:34 +0200 |
commit | 46ce79723123d3706b124f736cecf6bd5d2bac06 (patch) | |
tree | cf7e512feadbd94b279754dbf8eb10f7ea220ce3 /tests/destructor | |
parent | 8e27bddb97cb5629c35807c81ead3da58a09ebcc (diff) | |
download | Nim-46ce79723123d3706b124f736cecf6bd5d2bac06.tar.gz |
newruntime: progress...
Diffstat (limited to 'tests/destructor')
-rw-r--r-- | tests/destructor/twidgets.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/destructor/twidgets.nim b/tests/destructor/twidgets.nim index f7af1f75f..0495769bd 100644 --- a/tests/destructor/twidgets.nim +++ b/tests/destructor/twidgets.nim @@ -5,6 +5,9 @@ clicked!''' disabled: "true" """ +import core / allocators +import system / ansi_c + type Widget* = ref object of RootObj drawImpl: owned(proc (self: Widget)) @@ -71,4 +74,4 @@ proc main = main() let (a, d) = allocCounters() -discard cprintf("%ld %ld new: %ld\n", a, d, allocs) +discard cprintf("%ld %ld alloc/dealloc pairs: %ld\n", a, d, allocs) |