require errormsg to be specified before file.

This commit is contained in:
Arne Döring 2018-11-29 16:07:51 +01:00 • committed by Araq
commit 1105d03644
264 changed files with 305 additions and 623 deletions

View file

@ -1,7 +1,7 @@
discard """
errormsg: "'threadFunc' is not GC-safe"
file: "tthreadanalysis2.nim"
line: 37
errormsg: "'threadFunc' is not GC-safe"
cmd: "nim $target --hints:on --threads:on $options $file"
"""
@ -49,4 +49,3 @@ proc main =
joinThreads(thr)
main()

View file

@ -1,6 +1,6 @@
discard """
line: 11
errormsg: "'horrible' is not GC-safe"
line: 11
cmd: "nim $target --hints:on --threads:on $options $file"
"""
@ -16,5 +16,3 @@ proc horrible() {.thread.} =
createThread[void](t, horrible)
joinThread(t)