summary refs log tree commit diff stats
path: root/tests/macros/t18203.nim
blob: aae0a269040e3cab43e82945809f5ba8f879e604 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
discard """
  matrix: "--hint:SuccessX:off --hint:Link:off --hint:Conf:off --hint:CC:off --hint:XDeclaredButNotUsed:on"
  nimout: '''
'''
nimoutFull: true
action: compile
"""

# bug #18203
import std/macros

macro foo(x: typed) = newProc ident"bar"
proc bar() {.foo.} = raise
bar()