tester: threading tests added
This commit is contained in:
parent
a497b4d1cf
commit
62aa8bed3b
9 changed files with 96 additions and 29 deletions
|
|
@ -1,6 +1,12 @@
|
|||
discard """
|
||||
line: 12
|
||||
errormsg: "write to foreign heap"
|
||||
cmd: "nimrod cc --hints:on --threads:on $# $#"
|
||||
"""
|
||||
|
||||
var
|
||||
global: string = "test string"
|
||||
t: TThread[string]
|
||||
t: TThread[void]
|
||||
|
||||
proc horrible() {.thread.} =
|
||||
global = "string in thread local heap!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue