summaryrefslogtreecommitdiff
path: root/test/ptrpreinc.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-07-25 01:59:04 -0400
committerOri Bernstein <ori@eigenstate.org>2012-07-25 01:59:04 -0400
commite15b9b8ff63de5a461257b1ecfa9689e853c90ab (patch)
tree45455eb4864169e0e1b3d37aefbeb556ad9bb025 /test/ptrpreinc.myr
parenta143d21397a31766874783b7e008a54928af5da5 (diff)
downloadmc-e15b9b8ff63de5a461257b1ecfa9689e853c90ab.tar.gz
Add failing ptrpreinc test.
Diffstat (limited to 'test/ptrpreinc.myr')
-rw-r--r--test/ptrpreinc.myr10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ptrpreinc.myr b/test/ptrpreinc.myr
new file mode 100644
index 0000000..f8d246f
--- /dev/null
+++ b/test/ptrpreinc.myr
@@ -0,0 +1,10 @@
+const ppreinc = {p
+ -> ++*p
+}
+
+const main = {
+ var x = 8
+
+ -> ppreinc(&x)
+}
+