summaryrefslogtreecommitdiff
path: root/test/mkunion.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-06-28 01:38:53 -0400
committerOri Bernstein <ori@eigenstate.org>2012-06-28 01:38:53 -0400
commit60179fff24f6737b3ad6ca3e0e2c332fe8a20c85 (patch)
tree35d2ba24d51f95ff84aad047a7cb0b2efc3371c1 /test/mkunion.myr
parentbf98d0b81d9ddc5d77dc7c345f9577e41ef7aced (diff)
downloadmc-60179fff24f6737b3ad6ca3e0e2c332fe8a20c85.tar.gz
Add test for union creation
Diffstat (limited to 'test/mkunion.myr')
-rw-r--r--test/mkunion.myr11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/mkunion.myr b/test/mkunion.myr
new file mode 100644
index 0000000..8d2f291
--- /dev/null
+++ b/test/mkunion.myr
@@ -0,0 +1,11 @@
+type u = union
+ `Some int
+ `None
+;;
+
+const main = {
+ var v
+
+ v = `Some 123
+ -> 0
+}