t18203.nim 283 B

12345678910111213141516
  1. discard """
  2. matrix: "--hint:SuccessX:off --hint:Link:off --hint:Conf:off --hint:CC:off --hint:XDeclaredButNotUsed:on"
  3. nimout: '''
  4. '''
  5. nimoutFull: true
  6. action: compile
  7. """
  8. # bug #18203
  9. import std/macros
  10. macro foo(x: typed) = newProc ident"bar"
  11. proc bar() {.foo.} = raise
  12. bar()