fixes 10697 [backport]
This commit is contained in:
parent
315d438677
commit
257965e105
2 changed files with 16 additions and 4 deletions
|
|
@ -2,7 +2,8 @@ discard """
|
|||
output: '''ABCDC
|
||||
1
|
||||
14
|
||||
ok'''
|
||||
ok
|
||||
1'''
|
||||
"""
|
||||
|
||||
type
|
||||
|
|
@ -34,4 +35,14 @@ when true:
|
|||
|
||||
a.setLen(0)
|
||||
|
||||
echo "ok"
|
||||
echo "ok"
|
||||
|
||||
# bug #10697
|
||||
proc test2 =
|
||||
var val = uint16(0)
|
||||
var i = 0
|
||||
if i < 2:
|
||||
val += uint16(1)
|
||||
echo int(val)
|
||||
|
||||
test2()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue