summaryrefslogtreecommitdiff
path: root/test/arrayaddr.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-07-23 22:03:38 -0400
committerOri Bernstein <ori@eigenstate.org>2012-07-23 22:03:38 -0400
commit4f08e008be07a8fa4b76119a17c73574354928fd (patch)
tree29310787d1456f7d63e09f42b2b1484df11815cc /test/arrayaddr.myr
parent0011cdc42c4acb7784a64211faeeb49c885ff744 (diff)
downloadmc-4f08e008be07a8fa4b76119a17c73574354928fd.tar.gz
Add missing file.
Diffstat (limited to 'test/arrayaddr.myr')
-rw-r--r--test/arrayaddr.myr9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/arrayaddr.myr b/test/arrayaddr.myr
new file mode 100644
index 0000000..b524ccd
--- /dev/null
+++ b/test/arrayaddr.myr
@@ -0,0 +1,9 @@
+const main = {
+ var v : int[3]
+ var p
+
+ v[1] = 42
+ p = &v[1]
+ -> *p
+}
+