summaryrefslogtreecommitdiff
path: root/test/outparam-sl.myr
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-08-03 17:21:32 -0400
committerOri Bernstein <orib@google.com>2012-08-03 17:21:32 -0400
commit214bcaf52e9d77347338eab5d84240abb7dc104d (patch)
treec383f5953bf9305119d1609112fc58ba05d9b8eb /test/outparam-sl.myr
parent9b2d009acc6761a5b9328a69773e20f5ee530b15 (diff)
downloadmc-214bcaf52e9d77347338eab5d84240abb7dc104d.tar.gz
Test more stuff.
Diffstat (limited to 'test/outparam-sl.myr')
-rw-r--r--test/outparam-sl.myr11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/outparam-sl.myr b/test/outparam-sl.myr
new file mode 100644
index 0000000..37bddbf
--- /dev/null
+++ b/test/outparam-sl.myr
@@ -0,0 +1,11 @@
+const arr = [1,2,3,4]
+const f = {out
+ *out = arr[1,3]
+}
+
+const main = {
+ var v
+
+ f(&v)
+ -> v[0]
+}