progress on 'spawn'
This commit is contained in:
parent
fd086abb43
commit
76011e40ef
5 changed files with 33 additions and 10 deletions
18
tests/parallel/tdeepcopy.nim
Normal file
18
tests/parallel/tdeepcopy.nim
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
discard """
|
||||
output: '''13 abc'''
|
||||
"""
|
||||
|
||||
type
|
||||
PBinaryTree = ref object
|
||||
le, ri: PBinaryTree
|
||||
value: int
|
||||
|
||||
|
||||
proc main =
|
||||
var x: PBinaryTree
|
||||
deepCopy(x, PBinaryTree(ri: PBinaryTree(le: PBinaryTree(value: 13))))
|
||||
var y: string
|
||||
deepCopy y, "abc"
|
||||
echo x.ri.le.value, " ", y
|
||||
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue