diff options
author | Bung <crc32@qq.com> | 2022-06-11 02:40:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 20:40:34 +0200 |
commit | ac89eead8a40a1a8ee170a4650a1d47e203da14c (patch) | |
tree | e2f968245cdc4cf694fa03a9f65eb0bf48e8ade2 /tests | |
parent | 6f4bacff67e2e219ef914e24d9f9aaf34a6d1eb1 (diff) | |
download | Nim-ac89eead8a40a1a8ee170a4650a1d47e203da14c.tar.gz |
test for #19046 (#19839)
* test for #19046 * add threads flag
Diffstat (limited to 'tests')
-rw-r--r-- | tests/misc/t19046.nim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/misc/t19046.nim b/tests/misc/t19046.nim new file mode 100644 index 000000000..b3bfec7ae --- /dev/null +++ b/tests/misc/t19046.nim @@ -0,0 +1,19 @@ +discard """ + targets: "c cpp" + matrix: "--threads:on" + disabled: "win" + disabled: "osx" + action: compile +""" + +# bug #19046 + +import std/os + +var t: Thread[void] + +proc test = discard +proc main = + createThread(t, test) + pinToCpu(t, 1) +main() \ No newline at end of file |