summary refs log tree commit diff stats
path: root/tests/macros/t14329.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/macros/t14329.nim')
-rw-r--r--tests/macros/t14329.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/macros/t14329.nim b/tests/macros/t14329.nim
new file mode 100644
index 000000000..b5606424a
--- /dev/null
+++ b/tests/macros/t14329.nim
@@ -0,0 +1,4 @@
+import macros
+
+macro myMacro(n) =
+  let x = if true: newLit"test" else: error "error", n