parent
b7ff0b2a11
commit
dbff2cd938
1 changed files with 17 additions and 0 deletions
17
tests/cpp/t4834.nim
Normal file
17
tests/cpp/t4834.nim
Normal file
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue