t7224.nim 431 B

1234567891011121314151617181920212223242526272829
  1. discard """
  2. cmd: "nim $target $options --stackTrace:on --lineTrace:on $file"
  3. outputsub: '''
  4. t7224.nim(25) at module t7224
  5. t7224.nim(22) at t7224.aaa
  6. t7224.nim(19) at t7224.bbb
  7. t7224.nim(16) at t7224.ccc
  8. t7224.nim(13) at t7224.ddd
  9. '''
  10. """
  11. proc ddd() =
  12. raise newException(IOError, "didn't do stuff")
  13. proc ccc() =
  14. ddd()
  15. proc bbb() =
  16. ccc()
  17. proc aaa() =
  18. bbb()
  19. try:
  20. aaa()
  21. except IOError as e:
  22. echo getStackTrace(e)