summaryrefslogtreecommitdiff
path: root/lib/thread/test/die.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread/test/die.myr')
-rw-r--r--lib/thread/test/die.myr8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/thread/test/die.myr b/lib/thread/test/die.myr
new file mode 100644
index 0000000..db0fb21
--- /dev/null
+++ b/lib/thread/test/die.myr
@@ -0,0 +1,8 @@
+use thread
+
+const main = {
+ var m = thread.mkmtx()
+ thread.mtxlock(&m)
+ thread.mtxunlock(&m)
+ thread.mtxunlock(&m)
+}