Files
Nim/tests/stdlib/trlocks.nim
n5m 78cbb52fa0 add tests for #15584 (#15619)
* add test for #15584

* Rename userlocks.nim to trlocks.nim

* add bug comment

* improve cmd

* reference bugfix, not bug

* add test that runs rlocks

* disallow joining

joining with other test cases (e.g., a test case that invokes `RLock.initRLock()`) may cause this test to compile, when the goal is to test if these lines can be compiled in isolation
2020-10-18 12:57:13 -04:00

15 lines
238 B
Nim

discard """
action: "compile"
# Disallow joining to ensure it can compile in isolation.
# See #15584
joinable: false
cmd: "nim $target --threads:on $options $file"
"""
# bugfix #15584
import rlocks
var r: RLock
r.initRLock()