parent
d81568fcd5
commit
0a8684db4c
2 changed files with 28 additions and 15 deletions
11
tests/pragmas/tuserpragma2.nim
Normal file
11
tests/pragmas/tuserpragma2.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
discard """
|
||||
file: "tuserpragma2.nim"
|
||||
line: 11
|
||||
errormsg: "can raise an unlisted exception: ref Exception"
|
||||
"""
|
||||
|
||||
# bug #7216
|
||||
{.pragma: my_pragma, raises: [].}
|
||||
|
||||
proc test1 {.my_pragma.} =
|
||||
raise newException(Exception, "msg")
|
||||
Loading…
Add table
Add a link
Reference in a new issue