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




             
                                                                          




                                                                           
discard """
  output: '''
-1
8
'''
  ccodecheck: "'console.log(-1); function fac__tcodegendeclproc_u1(n_p0)'"
"""
proc fac(n: int): int {.codegenDecl: "console.log(-1); function $2($3)".} =
  return n

echo fac(8)