summary refs log tree commit diff stats
path: root/tests/stdlib/tlocks.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tlocks.nim')
-rw-r--r--tests/stdlib/tlocks.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/stdlib/tlocks.nim b/tests/stdlib/tlocks.nim
new file mode 100644
index 000000000..1c5f67119
--- /dev/null
+++ b/tests/stdlib/tlocks.nim
@@ -0,0 +1,11 @@
+discard """
+  targets: "c cpp js"
+  matrix: "--mm:refc; --mm:orc"
+"""
+
+#bug #6049
+import uselocks
+import std/assertions
+
+var m = createMyType[int]()
+doAssert m.use() == 3