diff options
Diffstat (limited to 'src/util/u_atomic_test.c')
-rw-r--r-- | src/util/u_atomic_test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/u_atomic_test.c b/src/util/u_atomic_test.c index 4845e753e6e..c5062750ae4 100644 --- a/src/util/u_atomic_test.c +++ b/src/util/u_atomic_test.c @@ -97,6 +97,11 @@ assert(v == ones && "p_atomic_dec_return"); \ assert(r == v && "p_atomic_dec_return"); \ \ + v = 23; \ + p_atomic_add(&v, 42); \ + r = p_atomic_read(&v); \ + assert(r == 65 && "p_atomic_add"); \ + \ (void) r; \ (void) b; \ } |