summary refs log blame commit diff stats
path: root/tests/closure/tboehmdeepcopy.nim
blob: 7c937ca107c80ea7f7823021209b05df53e86731 (plain) (tree)
1
2
3
4


                                        
                     













                          
discard """
  cmd: "nim c --gc:boehm $options $file"
  output: '''meep'''
  disabled: "windows"
"""

proc callit(it: proc ()) =
  it()

proc main =
  var outer = "meep"
  proc x =
    echo outer
  var y: proc()
  deepCopy(y, x)
  callit(y)

main()