summary refs log tree commit diff stats
path: root/tests/compile
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-06-20 00:45:57 +0200
committerAraq <rumpf_a@web.de>2012-06-20 00:45:57 +0200
commit40339aac62685f08396e0b42f2826f75bbeb25ed (patch)
tree014a40eaab28ceb7e9744b07302a0aea8402eb99 /tests/compile
parent39137294a37b769eec7b610520bf67cb47e437e8 (diff)
downloadNim-40339aac62685f08396e0b42f2826f75bbeb25ed.tar.gz
added another macro regression
Diffstat (limited to 'tests/compile')
-rwxr-xr-xtests/compile/tmacro1.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/compile/tmacro1.nim b/tests/compile/tmacro1.nim
index e96997c47..52c86e7e9 100755
--- a/tests/compile/tmacro1.nim
+++ b/tests/compile/tmacro1.nim
@@ -19,3 +19,12 @@ macro test*(a: stmt): stmt =
 test:
   "hi"
 
+macro dump(n: stmt): stmt =
+  dump(n)
+  if kind(n) == nnkNone:
+    nil
+  else:
+    hint($kind(n))
+    for i in countUp(0, len(n)-1):
+      nil
+