From 1c88d26ebf72b64077f4a600c28012dba48cfc1c Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 20 Feb 2015 16:18:14 +0100 Subject: [PATCH] added test case for #2107 --- tests/collections/ttables2.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/collections/ttables2.nim b/tests/collections/ttables2.nim index 611f3f8ecb..6f3fa841af 100644 --- a/tests/collections/ttables2.nim +++ b/tests/collections/ttables2.nim @@ -16,5 +16,15 @@ proc run1() = # occupied Memory stays constant, but for i in 1 .. 50: # aborts at run: 44 on win32 with 3.2GB with out of memory TestHashIntInt() +# bug #2107 + +var delTab = initTable[int,int](4) + +for i in 1..4: + delTab[i] = i + delTab.del(i) +delTab[5] = 5 + + run1() echo "true"