mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 02:18:00 +00:00
added test case for #2107
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user