summary refs log tree commit diff stats
path: root/tests/run/tmacro4.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/tmacro4.nim')
-rwxr-xr-xtests/run/tmacro4.nim19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/run/tmacro4.nim b/tests/run/tmacro4.nim
deleted file mode 100755
index f90a8a434..000000000
--- a/tests/run/tmacro4.nim
+++ /dev/null
@@ -1,19 +0,0 @@
-discard """
-  output: "after"
-"""
-
-import
-  macros, strutils
-
-macro test_macro*(n: stmt): stmt =
-  result = newNimNode(nnkStmtList)
-  var ass : PNimrodNode = newNimNode(nnkAsgn)
-  add(ass, newIdentNode("str"))
-  add(ass, newStrLitNode("after"))
-  add(result, ass)
-when isMainModule:
-  var str: string = "before"
-  test_macro(str):
-    var i : integer = 123
-  echo str
-