aboutsummaryrefslogtreecommitdiffstats
path: root/test8
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-04-13 08:43:47 -0400
committerClyne Sullivan <tullivan99@gmail.com>2018-04-13 08:43:47 -0400
commit7f64da46ffe3b2e2a2b46a3dd2effc4f4f7d45da (patch)
tree4bc9fa6dc51a327823bcf508d4a64db3a4a2876d /test8
parent14fd4de5d5f0a4e8e51fc2fc180d5ec4c92fa22c (diff)
arrays, implicit multiply
Diffstat (limited to 'test8')
-rw-r--r--test817
1 files changed, 17 insertions, 0 deletions
diff --git a/test8 b/test8
new file mode 100644
index 0000000..8081b4c
--- /dev/null
+++ b/test8
@@ -0,0 +1,17 @@
+array(a, 10)
+
+i = 0
+while (i < 10) {
+ a.i = i * 2
+ i = i + 1
+}
+
+i = 0
+while (i < 10) {
+ print(a.i)
+ i = i + 1
+}
+
+a.20 = 143
+print(a.20)
+print(a.19)