mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-17 08:34:20 +00:00
(cherry picked from commit de02fd0b89)
This commit is contained in:
9
tests/cpp/tterminate_handler.nim
Normal file
9
tests/cpp/tterminate_handler.nim
Normal file
@@ -0,0 +1,9 @@
|
||||
discard """
|
||||
targets: "cpp"
|
||||
outputsub: "Error: unhandled unknown cpp exception"
|
||||
exitcode: 1
|
||||
"""
|
||||
type Crap {.importcpp: "int".} = object
|
||||
|
||||
var c: Crap
|
||||
raise c
|
||||
Reference in New Issue
Block a user