summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2015-01-29 04:40:27 -0600
committerSimon Hafner <hafnersimon@gmail.com>2015-01-29 04:40:27 -0600
commit5ecc461a944b54a516e6f81df4bd6db95a86e682 (patch)
tree706670ce28a23487be512b91c7a40ff044646026 /tests
parentd4786976dd80ad7aef531b259cf04ab65e80dabc (diff)
downloadNim-5ecc461a944b54a516e6f81df4bd6db95a86e682.tar.gz
Fixes #2030
Diffstat (limited to 'tests')
-rw-r--r--tests/exprs/thighCString.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/exprs/thighCString.nim b/tests/exprs/thighCString.nim
new file mode 100644
index 000000000..543966df4
--- /dev/null
+++ b/tests/exprs/thighCString.nim
@@ -0,0 +1,6 @@
+discard """
+  output: "5"
+"""
+let test = cstring("foobar")
+
+echo high(test)