summary refs log blame commit diff stats
path: root/tests/pragmas/tuserpragma2.nim
blob: bf8844e66dc73886e1d02cf1887e0f7da9b947e0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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")