summary refs log tree commit diff stats
path: root/tests/macros/t19766_20114.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/macros/t19766_20114.nim')
-rw-r--r--tests/macros/t19766_20114.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/macros/t19766_20114.nim b/tests/macros/t19766_20114.nim
new file mode 100644
index 000000000..ac336f150
--- /dev/null
+++ b/tests/macros/t19766_20114.nim
@@ -0,0 +1,16 @@
+discard """
+  action: compile
+  nimout: '''
+const
+  foo {.strdefine.} = "abc"
+let hey {.tddd.} = 5
+'''
+"""
+
+import macros
+
+template tddd {.pragma.}
+
+expandMacros:
+  const foo {.strdefine.} = "abc"
+  let hey {.tddd.} = 5