summary refs log blame commit diff stats
path: root/tests/pragmas/tuserpragma2.nim
blob: c3f31cd5ed94b2fc99abea40ca7605aa4dfaefc5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
           
                                                            

                          
   
                                   




                                      
       
discard """
  errormsg: "can raise an unlisted exception: ref Exception"
  file: "tuserpragma2.nim"
  line: 11
"""
{.push warningAsError[Effect]: on.}
# bug #7216
{.pragma: my_pragma, raises: [].}

proc test1 {.my_pragma.} =
  raise newException(Exception, "msg")
{.pop.}