X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_uatomic.c;h=692060bcdf175763e2290c6c207d7d66366928c9;hp=37f95a6d849699f7756676a09f0fee78803f4054;hb=6d5c0ca90ae4e999cdf4366ff615a6c619e7257e;hpb=985b35b18796edab591775098fef83a50a1e55ce diff --git a/tests/test_uatomic.c b/tests/test_uatomic.c index 37f95a6..692060b 100644 --- a/tests/test_uatomic.c +++ b/tests/test_uatomic.c @@ -1,6 +1,6 @@ #include #include -#include +#include struct testvals { unsigned char c; @@ -41,6 +41,8 @@ do { \ v = uatomic_sub_return(ptr, 1); \ assert(v == 121); \ assert(uatomic_read(ptr) == 121); \ + uatomic_and(ptr, 129); \ + assert(uatomic_read(ptr) == 1); \ } while (0) int main(int argc, char **argv)