summary refs log tree commit diff stats
path: root/tests/exprs/tstmtexp.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exprs/tstmtexp.nim')
-rw-r--r--tests/exprs/tstmtexp.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/exprs/tstmtexp.nim b/tests/exprs/tstmtexp.nim
new file mode 100644
index 000000000..7cbf2eb3d
--- /dev/null
+++ b/tests/exprs/tstmtexp.nim
@@ -0,0 +1,9 @@
+discard """
+  file: "tstmtexp.nim"
+  line: 8
+  errormsg: "value returned by statement has to be discarded"
+"""
+# Test 3
+
+1+4 #ERROR_MSG value returned by statement has to be discarded
+