* fixes #13119
* fixes a regression
This commit is contained in:
Andreas Rumpf 2020-01-14 09:56:08 +01:00 • committed by GitHub
commit d56848878c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 5 deletions

View file

@ -3,6 +3,7 @@ discard """
@[1, 2, 3]
Success
@["a", "b", "c"]
Hello
0'''
cmd: '''nim c --gc:arc $file'''
"""
@ -114,4 +115,15 @@ proc bug12964*() =
bug12964()
# bug #13119
import streams
proc bug13119 =
var m = newStringStream("Hello world")
let buffer = m.readStr(5)
echo buffer
m.close
bug13119()
echo getOccupiedMem() - startMem