This commit is contained in:
Araq 2015-07-22 01:21:42 +02:00
commit 862ee8d1d3
3 changed files with 18 additions and 4 deletions

View file

@ -1,5 +1,7 @@
discard """
output: '''255
output: '''[10, 0, 0, 0, 0, 0, 0, 0]
255
1 1
0.5'''
"""
@ -27,4 +29,13 @@ proc mainowar =
var b = p[]
echo b[0]
# bug 2963
var
a = [8, 7, 3, 10, 0, 0, 0, 1]
b = [10, 0, 0, 0, 0, 0, 0, 0]
ap = addr a
ap[] = b
echo repr(a)
mainowar()