summary refs log tree commit diff stats
path: root/tests/pragmas/custom_pragma.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pragmas/custom_pragma.nim')
-rw-r--r--tests/pragmas/custom_pragma.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pragmas/custom_pragma.nim b/tests/pragmas/custom_pragma.nim
new file mode 100644
index 000000000..d2fc969d0
--- /dev/null
+++ b/tests/pragmas/custom_pragma.nim
@@ -0,0 +1,5 @@
+# imported by tcustom_pragmas to test scoping
+
+template serializationKey*(s: string) {.pragma.}
+template defaultValue*(V: typed) {.pragma.}
+template alternativeKey*(s: string = "", V: typed) {.pragma.}