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"