added testcase for #1679

This commit is contained in:
Araq
2015-09-14 12:42:22 +02:00
parent 612cd25d5d
commit a3f791f892

View File

@@ -0,0 +1,9 @@
# bug #1679
import macros, tables, hashes
proc hash(v: NimNode): Hash = 4 # performance is for suckers
macro test(body: stmt): stmt {.immediate.} =
var a = initCountTable[NimNode]()
a.inc(body)
test:
1 + 1