diff options
author | Araq <rumpf_a@web.de> | 2012-02-17 02:16:33 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-02-17 02:16:33 +0100 |
commit | 97366d44195a96075960749a0ea84ded582dce87 (patch) | |
tree | 091e6263166b46b344ab50ffee0b1ad20ffc3e07 /tests/run | |
parent | 88f9eff38fc8b462df474e2e3a9404527d29f30a (diff) | |
download | Nim-97366d44195a96075960749a0ea84ded582dce87.tar.gz |
bugfix: optimization of complex constant string concatenations
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/tconcat.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run/tconcat.nim b/tests/run/tconcat.nim new file mode 100644 index 000000000..fdce3ea00 --- /dev/null +++ b/tests/run/tconcat.nim @@ -0,0 +1,11 @@ +discard """ + output: "DabcD" +""" + +const + x = "abc" + +var v = "D" & x & "D" + +echo v + |