diff options
Diffstat (limited to 'tests/threads')
-rw-r--r-- | tests/threads/t8535.nim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/threads/t8535.nim b/tests/threads/t8535.nim new file mode 100644 index 000000000..a8d69657b --- /dev/null +++ b/tests/threads/t8535.nim @@ -0,0 +1,16 @@ +discard """ + output: "0" +""" + +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 isMainModule: + echo foo.index |