summary refs log tree commit diff stats
path: root/tests/parallel/tguard1.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parallel/tguard1.nim')
-rw-r--r--tests/parallel/tguard1.nim8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/parallel/tguard1.nim b/tests/parallel/tguard1.nim
index 3e0c131c5..f4c92319b 100644
--- a/tests/parallel/tguard1.nim
+++ b/tests/parallel/tguard1.nim
@@ -1,7 +1,11 @@
+discard """
+output: "90"
+"""
+
 
 when false:
   template lock(a, b: ptr Lock; body: stmt) =
-    if cast[ByteAddress](a) < cast[ByteAddress](b):
+    if cast[int](a) < cast[int](b):
       pthread_mutex_lock(a)
       pthread_mutex_lock(b)
     else:
@@ -24,7 +28,7 @@ var
 
 c.i = 89
 
-template atomicRead(L, x): expr =
+template atomicRead(L, x): untyped =
   {.locks: [L].}:
     x