summary refs log tree commit diff stats
path: root/tests/overload/tsystemcmp.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-11-27 09:28:48 +0100
committerAraq <rumpf_a@web.de>2014-11-27 09:28:48 +0100
commitb4e38cb4987b1eeca441bfb405b64951ea27810f (patch)
tree9577d116a1644551340af310a074a460fccf9e66 /tests/overload/tsystemcmp.nim
parent7edf6fc1d2f8feb8d126065f5429afa71e4aa06e (diff)
downloadNim-b4e38cb4987b1eeca441bfb405b64951ea27810f.tar.gz
fixes #1657
Diffstat (limited to 'tests/overload/tsystemcmp.nim')
-rw-r--r--tests/overload/tsystemcmp.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/overload/tsystemcmp.nim b/tests/overload/tsystemcmp.nim
new file mode 100644
index 000000000..54dff0c46
--- /dev/null
+++ b/tests/overload/tsystemcmp.nim
@@ -0,0 +1,9 @@
+discard """
+  cmd: r"nim c --hints:on $options --threads:on $file"
+"""
+
+import algorithm
+
+# bug #1657
+var modules = @["hi", "ho", "ha", "huu"]
+sort(modules, system.cmp)