summary refs log tree commit diff stats
path: root/tests/compile
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-06-27 08:19:03 +0200
committerAraq <rumpf_a@web.de>2013-06-27 08:19:03 +0200
commit8d4f5038d0e8073da33c2cf393a5b187bf9285f5 (patch)
tree9ae2db240ca8102574bc73c0069050bf546f48ea /tests/compile
parented56b8c17372328726eb75542d6a873b279864e4 (diff)
downloadNim-8d4f5038d0e8073da33c2cf393a5b187bf9285f5.tar.gz
fixes #488
Diffstat (limited to 'tests/compile')
-rw-r--r--tests/compile/tmacrostmt.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/compile/tmacrostmt.nim b/tests/compile/tmacrostmt.nim
index 69b49f692..d9c70197d 100644
--- a/tests/compile/tmacrostmt.nim
+++ b/tests/compile/tmacrostmt.nim
@@ -15,3 +15,12 @@ else:
   return tkUnknown
   
 case_token: inc i
+
+#bug #488
+
+macro foo: stmt =
+  var exp = newCall("whatwhat", newIntLitNode(1))
+  if compiles(getAst(exp)): return exp
+  else: echo "Does not compute!"
+
+foo()