summary refs log tree commit diff stats
path: root/tests/errmsgs/tnoop.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs/tnoop.nim')
-rw-r--r--tests/errmsgs/tnoop.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/errmsgs/tnoop.nim b/tests/errmsgs/tnoop.nim
new file mode 100644
index 000000000..f55f2441a
--- /dev/null
+++ b/tests/errmsgs/tnoop.nim
@@ -0,0 +1,12 @@
+discard """
+  nimout: '''
+  found 'a' [var declared in tnoop.nim(10, 3)]
+  '''
+  file: "tnoop.nim"
+  errormsg: "attempting to call routine: 'a'"
+"""
+
+var
+  a: int
+
+a()