Skip to content

Commit

Permalink
close #4834 add testcase (#16649)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Jan 9, 2021
1 parent b7ff0b2 commit dbff2cd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/cpp/t4834.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
discard """
targets: "cpp"
"""

# issue #4834
block:
defer:
let x = 0


proc main() =
block:
defer:
raise newException(Exception, "foo")

doAssertRaises(Exception):
main()

0 comments on commit dbff2cd

Please sign in to comment.