summary refs log tree commit diff stats
path: root/tests/arc
diff options
context:
space:
mode:
authorcooldome <ariabushenko@gmail.com>2020-12-27 21:05:33 +0200
committerGitHub <noreply@github.com>2020-12-27 20:05:33 +0100
commitfbc8a40c7a351ff7c0f2dc0608bc8926f89d8537 (patch)
tree107af7d68f7a0f388fe3a6f4e5d043041fac19a6 /tests/arc
parente718a4a058f9a9d0c9c8ce1d388040de7c14271d (diff)
downloadNim-fbc8a40c7a351ff7c0f2dc0608bc8926f89d8537.tar.gz
fix #15043 (#16441) [backport:1.4]
* fix #15043

* Trigger build
Diffstat (limited to 'tests/arc')
-rw-r--r--tests/arc/trepr.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/arc/trepr.nim b/tests/arc/trepr.nim
index 3c1e4129c..50d433208 100644
--- a/tests/arc/trepr.nim
+++ b/tests/arc/trepr.nim
@@ -71,3 +71,19 @@ proc p2 =
 
 discard repr p2
 
+
+#####################################################################
+# bug #15043
+
+import macros
+
+macro extract(): untyped =
+  result = newStmtList()
+  var x: seq[tuple[node: NimNode]]
+
+  proc test(n: NimNode) {.closure.} =
+    x.add (node: n)
+  
+  test(parseExpr("discard"))
+  
+extract()