summary refs log blame commit diff stats
path: root/tests/ccgbugs/tcodegendecllambda.nim
blob: 5c6608b772509e03d978db6b2608afdaffe86e3b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14


                       
                 









                                                                     
discard """
  targets: "c cpp js"
  ccodecheck: "'HELLO'"
  action: compile
"""

when defined(JS):
  var foo = proc(): void{.codegenDecl: "/*HELLO*/function $2($3)".} =
    echo "baa"
else:
  var foo = proc(): void{.codegenDecl: "/*HELLO*/$1 $2 $3".} =
    echo "baa"

foo()