summary refs log tree commit diff stats
path: root/tests/dll/client.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dll/client.nim')
-rw-r--r--tests/dll/client.nim14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/dll/client.nim b/tests/dll/client.nim
index a78cef1d4..62697569f 100644
--- a/tests/dll/client.nim
+++ b/tests/dll/client.nim
@@ -1,6 +1,5 @@
 discard """
-  output: "Done"
-  cmd: "nimrod cc --debuginfo --hints:on --define:useNimRtl $# $#"
+  cmd: "nim $target --debuginfo --hints:on --define:useNimRtl $options $file"
 """
 
 type
@@ -22,8 +21,8 @@ else:
 
 proc newLit(x: int): PNode {.importc: "newLit", dynlib: dllname.}
 proc newOp(k: TNodeKind, a, b: PNode): PNode {.
-  importc: "newOp", dynlib: dllname.}  
-proc buildTree(x: int): PNode {.importc: "buildTree", dynlib: dllname.} 
+  importc: "newOp", dynlib: dllname.}
+proc buildTree(x: int): PNode {.importc: "buildTree", dynlib: dllname.}
 
 proc eval(n: PNode): int =
   case n.k
@@ -36,6 +35,9 @@ proc eval(n: PNode): int =
 # Test the GC:
 for i in 0..100_000:
   discard eval(buildTree(2))
-  
-echo "Done"
 
+# bug https://forum.nim-lang.org/t/8176; Error: ambiguous identifier: 'nimrtl'
+import std/strutils
+doAssert join(@[1, 2]) == "12"
+doAssert join(@[1.5, 2.5]) == "1.52.5"
+doAssert join(@["a", "bc"]) == "abc"