summary refs log tree commit diff stats
path: root/testament/tests/shouldfail/tline.nim
diff options
context:
space:
mode:
Diffstat (limited to 'testament/tests/shouldfail/tline.nim')
-rw-r--r--testament/tests/shouldfail/tline.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/testament/tests/shouldfail/tline.nim b/testament/tests/shouldfail/tline.nim
new file mode 100644
index 000000000..fe782eb03
--- /dev/null
+++ b/testament/tests/shouldfail/tline.nim
@@ -0,0 +1,8 @@
+discard """
+  errormsg: "undeclared identifier: 'undeclared'"
+  line: 10
+  column: 6
+"""
+
+# test should fail because the line directive is wrong
+echo undeclared