summary refs log tree commit diff stats
path: root/tests/pragmas/t8741.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pragmas/t8741.nim')
-rw-r--r--tests/pragmas/t8741.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pragmas/t8741.nim b/tests/pragmas/t8741.nim
new file mode 100644
index 000000000..7398b1030
--- /dev/null
+++ b/tests/pragmas/t8741.nim
@@ -0,0 +1,10 @@
+discard """
+  line: 9
+  errormsg: "attempting to call undeclared routine: 'foobar'"
+"""
+
+for a {.gensym, inject.} in @[1,2,3]:
+  discard
+
+for a {.foobar.} in @[1,2,3]:
+  discard