summary refs log tree commit diff stats
path: root/tests/template/template_pragmas.nim
blob: d6c99080db5fe10901aa0c993df9ce027eb95709 (plain) (blame)
1
2
3
4
5
6
7
8
9
proc output_x:string {.compileTime.} = "x"

template t =
  const x = output_x()
  let
    bar {.exportC:"bar" & x.} = 100

static:
  doAssert(compiles (t()))