summary refs log tree commit diff stats
path: root/tests/compiler/t12684.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compiler/t12684.nim')
-rw-r--r--tests/compiler/t12684.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/compiler/t12684.nim b/tests/compiler/t12684.nim
new file mode 100644
index 000000000..a5f33d2c9
--- /dev/null
+++ b/tests/compiler/t12684.nim
@@ -0,0 +1,7 @@
+discard """
+  cmd: "nim check --hints:off --warnings:off $file"
+  errormsg: "undeclared identifier: 'Undeclared'"
+"""
+
+var x: Undeclared
+import compiler/nimeval