summaryrefslogtreecommitdiff
path: root/test/derefassign.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-07-27 19:52:42 -0400
committerOri Bernstein <ori@eigenstate.org>2012-07-27 19:52:42 -0400
commit188127af82ebd9fbd729419c525ba459d3a779f4 (patch)
tree0fc41911ae6871d5670627de019bfde59c611bcb /test/derefassign.myr
parent4a9ebe2a52eaf6d632f8f092fcb5a860205b026c (diff)
downloadmc-188127af82ebd9fbd729419c525ba459d3a779f4.tar.gz
Add tests for dereferencing assignment.
Diffstat (limited to 'test/derefassign.myr')
-rw-r--r--test/derefassign.myr8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/derefassign.myr b/test/derefassign.myr
new file mode 100644
index 0000000..d24f247
--- /dev/null
+++ b/test/derefassign.myr
@@ -0,0 +1,8 @@
+const main = {
+ var p
+ var v
+
+ p = &v
+ *p = 123
+ -> v
+}