summary refs log tree commit diff stats
path: root/tests/threads/tthreadanalysis.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/threads/tthreadanalysis.nim')
-rw-r--r--tests/threads/tthreadanalysis.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/threads/tthreadanalysis.nim b/tests/threads/tthreadanalysis.nim
index 4edd51025..3a46cd185 100644
--- a/tests/threads/tthreadanalysis.nim
+++ b/tests/threads/tthreadanalysis.nim
@@ -1,5 +1,7 @@
 discard """
   outputsub: "101"
+  msg: "Warning: write to foreign heap"
+  line: 37
   cmd: "nimrod cc --hints:on --threads:on $# $#"
 """
 
@@ -8,7 +10,7 @@ import os
 var
   thr: array [0..5, TThread[tuple[a, b: int]]]
 
-proc doNothing() = nil
+proc doNothing() = discard
 
 type
   PNode = ref TNode