Files
Nim/tests/threads/t8535.nim
ringabout cdbf5b4699 fixes a severe bug of testament (#20832)
* test azure

* use exit 1

* try again

* use useSysAssert

* disable i386

* use refc for tlsEmulation on i386

* use refc

* disable i386

Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
2022-11-17 09:38:07 +08:00

31 lines
382 B
Nim

discard """
disabled: i386
output: '''0
hello'''
"""
type
CircAlloc*[Size: static[int], T] = tuple
baseArray: array[Size,T]
index: uint16
type
Job = object of RootObj
var foo {.threadvar.}: CircAlloc[1, Job]
when true:
echo foo.index
# bug #10795
import asyncdispatch
import threadpool
proc f1() =
waitFor sleepAsync(20)
echo "hello"
spawn f1()
sync()