summaryrefslogtreecommitdiff
path: root/test/struct1.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-06-06 20:23:56 -0400
committerOri Bernstein <ori@eigenstate.org>2012-06-06 20:23:56 -0400
commit3289ec1d735c72bf5220eef9c4fb3b33c04d1199 (patch)
treebed48d3ebd06abf1eaf0885206e3a7a84b6b705f /test/struct1.myr
parent1ea25c633e0d840eb8515bc889cee36d0baf9e11 (diff)
downloadmc-3289ec1d735c72bf5220eef9c4fb3b33c04d1199.tar.gz
Simplify test framework
Tests are only specified in one place.
Diffstat (limited to 'test/struct1.myr')
-rw-r--r--test/struct1.myr9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/struct1.myr b/test/struct1.myr
new file mode 100644
index 0000000..ed1d128
--- /dev/null
+++ b/test/struct1.myr
@@ -0,0 +1,9 @@
+type val = struct
+ a : int
+;;
+
+const main = {
+ var s : val
+ s.a = 12
+ -> s.a
+}