ref: a9bfe8ce61dee5b1b8b273173dcaba6afee99bb9
parent: 67adcf7bb9540c8b88476ab51d5a359a02710f55
author: Ori Bernstein <[email protected]>
date: Mon Jul 9 04:15:22 EDT 2012
Add tests for global arrays.
--- /dev/null
+++ b/test/global-arrayvar.myr
@@ -1,0 +1,7 @@
+var a : int[10]
+
+const main = {
+ a[0] = 3
+ a[1] = 4
+ -> a[0] + a[1] + a[2] + a[3]
+}
--- a/test/tests
+++ b/test/tests
@@ -24,6 +24,7 @@
B structasn E 42
B structret E 42
B array E 7
+B global-arrayvar E 8
B arraylen E 12
B slice E 7
B slicelen E 5