summary refs log tree commit diff stats
path: root/tests/parallel
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-11-08 15:47:00 +0100
committerAraq <rumpf_a@web.de>2014-11-08 15:47:00 +0100
commit830e0c0009d25d84a26fc997722eee4ecd015fd9 (patch)
tree1902dc5afe39a9f57052891c37f34e5e590a1e47 /tests/parallel
parentcb976c9c9a0ff0ff16fabc7543a4594c60458caa (diff)
downloadNim-830e0c0009d25d84a26fc997722eee4ecd015fd9.tar.gz
the codegen doesn't emit deepCopy for parallel statements
Diffstat (limited to 'tests/parallel')
-rw-r--r--tests/parallel/tconvexhull.nim2
-rw-r--r--tests/parallel/tdeepcopy2.nim8
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/parallel/tconvexhull.nim b/tests/parallel/tconvexhull.nim
index c97fed39b..d7e4f7716 100644
--- a/tests/parallel/tconvexhull.nim
+++ b/tests/parallel/tconvexhull.nim
@@ -5,6 +5,8 @@ true
 true
 true
 true'''
+
+ccodeCheck: "!'deepcopy('"
 """
 
 # parallel convex hull for Nim bigbreak
diff --git a/tests/parallel/tdeepcopy2.nim b/tests/parallel/tdeepcopy2.nim
index eca19f639..8ffdcc5f2 100644
--- a/tests/parallel/tdeepcopy2.nim
+++ b/tests/parallel/tdeepcopy2.nim
@@ -27,9 +27,9 @@ proc main =
   var dummy: ref Bar[int]
   new(dummy)
   dummy.x = 44
-  parallel:
-    let f = spawn foo(dummy)
-    let b = spawn foo(dummy)
-  echo "done", f, " ", b
+  #parallel:
+  let f = spawn foo(dummy)
+  let b = spawn foo(dummy)
+  echo "done", ^f, " ", ^b
 
 main()