summary refs log blame commit diff stats
path: root/tests/ccgbugs/tnocodegen_for_compiletime.nim
blob: 3a952e3037e37ae6f0adf4b3b0f37dee3148161a (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                             
                           




                                   
# bug #1679
import macros, tables, hashes
proc hash(v: NimNode): Hash = 4  # performance is for suckers
macro test(body: untyped) =
  var a = initCountTable[NimNode]()
  a.inc(body)

test:
  1 + 1