summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-24 02:18:07 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-24 02:18:07 -0800
commit65f6675040a4c29da1bd387e7dc22c823a69da97 (patch)
tree8405aaf137df3bf994cd3b99c4709024986bca54 /test
parent2c113e30f0892e015ae61ab8f453c9b3a073c73b (diff)
downloadmc-65f6675040a4c29da1bd387e7dc22c823a69da97.tar.gz
Add test for big type blobs.
Diffstat (limited to 'test')
-rw-r--r--test/bigtyblob.myr109
-rw-r--r--test/tests1
2 files changed, 110 insertions, 0 deletions
diff --git a/test/bigtyblob.myr b/test/bigtyblob.myr
new file mode 100644
index 0000000..8163735
--- /dev/null
+++ b/test/bigtyblob.myr
@@ -0,0 +1,109 @@
+use std
+
+type t = union
+ `U1
+ `U2
+ `U3
+ `U4
+ `U5
+ `U6
+ `U7
+ `U8
+ `U9
+ `U10
+ `U11
+ `U12
+ `U13
+ `U14
+ `U15
+ `U16
+ `U17
+ `U18
+ `U19
+ `U20
+ `U21
+ `U22
+ `U23
+ `U24
+ `U25
+ `U26
+ `U27
+ `U28
+ `U29
+ `U30
+ `U31
+ `U32
+ `U33
+ `U34
+ `U35
+ `U36
+ `U37
+ `U38
+ `U39
+ `U40
+ `U41
+ `U42
+ `U43
+ `U44
+ `U45
+ `U46
+ `U47
+ `U48
+ `U49
+ `U50
+ `U51
+ `U52
+ `U53
+ `U54
+ `U55
+ `U56
+ `U57
+ `U58
+ `U59
+ `U60
+ `U61
+ `U62
+ `U63
+ `U64
+ `U65
+ `U66
+ `U67
+ `U68
+ `U69
+ `U70
+ `U71
+ `U72
+ `U73
+ `U74
+ `U75
+ `U76
+ `U77
+ `U78
+ `U79
+ `U80
+ `U81
+ `U82
+ `U83
+ `U84
+ `U85
+ `U86
+ `U87
+ `U88
+ `U89
+ `U90
+ `U91
+ `U92
+ `U93
+ `U94
+ `U95
+ `U96
+ `U97
+ `U98
+ `U99
+ `U100
+;;
+
+const main = {
+ std.put("{}\n", `U100)
+}
+
diff --git a/test/tests b/test/tests
index f9da77c..0fab161 100644
--- a/test/tests
+++ b/test/tests
@@ -95,6 +95,7 @@ B genericret E 42
B genericmatch E 15
B genericrec E 0
B recgeneric P 'built'
+B bigtyblob P '`U100 '
# B genericchain P 'val = 123' ## BUGGERED
B genericmake P 'val = 123'
B genericuret E 42