diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-10-17 14:48:16 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-10-17 14:48:16 +0200 |
commit | 58d5f9679028516b09bc2a2c0498e668f61cc8c9 (patch) | |
tree | 0020de1b741caf52c518a4716fba136d5c9cc38c /tests | |
parent | a0c5260c205950c473f3de876dd0bb0b1e199c7c (diff) | |
download | Nim-58d5f9679028516b09bc2a2c0498e668f61cc8c9.tar.gz |
destructors: lift type bound ops to objects and arrays etc
Diffstat (limited to 'tests')
-rw-r--r-- | tests/destructor/tcustomstrings.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/destructor/tcustomstrings.nim b/tests/destructor/tcustomstrings.nim index 2250d4772..780b0d2f1 100644 --- a/tests/destructor/tcustomstrings.nim +++ b/tests/destructor/tcustomstrings.nim @@ -4,7 +4,7 @@ foo bar to appendmore here foo bar to appendmore here foo bar to appendmore here foo bar to appendmore here -after 16 16''' +after 20 20''' cmd: '''nim c --newruntime $file''' """ @@ -92,5 +92,8 @@ proc main(n: int) = a.add c echo cstring(a.data) + var x: array[4, mystring] + for i in 0..high(x): x[i] = create"added to array" + main(1000) echo "after ", allocCount, " ", deallocCount |