summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2019-01-29 14:17:41 -0800
committerOri Bernstein <ori@markovcorp.com>2019-01-29 14:17:41 -0800
commitbfc9204963426bf0e8121b416458550b8f2616ad (patch)
tree6a7343c0648f82d7840090bf7f4ffc058aea6ca2
parent8d7247af269b3b0ef283f3b01f31980f686ae217 (diff)
downloadmc-bfc9204963426bf0e8121b416458550b8f2616ad.tar.gz
Add test for previous failure.
-rw-r--r--test/slprint.myr5
-rw-r--r--test/tests1
2 files changed, 6 insertions, 0 deletions
diff --git a/test/slprint.myr b/test/slprint.myr
new file mode 100644
index 0000000..9640a9a
--- /dev/null
+++ b/test/slprint.myr
@@ -0,0 +1,5 @@
+use std
+
+const main = {
+ std.put("{} {}\n", (1 : uint32), [2][:]) /* !!! */
+}
diff --git a/test/tests b/test/tests
index 1e49566..d4ad1ce 100644
--- a/test/tests
+++ b/test/tests
@@ -137,6 +137,7 @@ B livestructlit E 21
B tuple E 42
B tupleaccess P 'a: 0, b: 5, c: 2'
B slgrow E 42
+B slprint P '1 [2]'
B tyrec E 42
B infer-named E 99
B exportcycle E 0