mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* 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>
31 lines
382 B
Nim
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()
|