summaryrefslogtreecommitdiff
path: root/test/strjoin.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-01-15 19:00:03 -0500
committerOri Bernstein <ori@eigenstate.org>2014-01-15 19:00:03 -0500
commite1dd87b2721b7b42e252d83330798e73daf48a27 (patch)
tree4e9df0f37f0c2eee5e3c3cc5e7f858d143baf2af /test/strjoin.myr
parent0f342c47db402a0b4ba021dab79414941180c1f0 (diff)
downloadmc-e1dd87b2721b7b42e252d83330798e73daf48a27.tar.gz
Fix writing constant struct literals
We had alignment and padding issues. Fixed.
Diffstat (limited to 'test/strjoin.myr')
-rw-r--r--test/strjoin.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/strjoin.myr b/test/strjoin.myr
index 452b75a..cde44c6 100644
--- a/test/strjoin.myr
+++ b/test/strjoin.myr
@@ -8,5 +8,6 @@ const main = {
"w"
]
std.put("%s\n", std.strcat("foo;", "bar"))
- std.put("%s\n", std.strjoin(strings[:]))
+ std.put("%s\n", std.strjoin(strings[:], ""))
+ std.put("%s\n", std.strjoin(strings[:], ":"))
}