summary refs log blame commit diff stats
path: root/tests/ccgbugs/tcodegendecllambda.nim
blob: 814dcf2065b12e378d109668a9379d9ea1f3d7ef (plain) (tree)
1
2
3
4
5
6
7


                       
                 

   
                 






                                                                     
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()