tboehmdeepcopy.nim 248 B

12345678910111213141516171819
  1. discard """
  2. cmd: "nim c --gc:boehm $options $file"
  3. output: '''meep'''
  4. disabled: "windows"
  5. """
  6. proc callit(it: proc ()) =
  7. it()
  8. proc main =
  9. var outer = "meep"
  10. proc x =
  11. echo outer
  12. var y: proc()
  13. deepCopy(y, x)
  14. callit(y)
  15. main()