diff options
Diffstat (limited to '')
-rw-r--r-- | auto/atomic | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/auto/atomic b/auto/atomic index 6535bf74..31259fc5 100644 --- a/auto/atomic +++ b/auto/atomic @@ -21,6 +21,10 @@ nxt_feature_test="int main() { return 1; if (n != 5) return 1; + if (__sync_or_and_fetch(&n, 2) != 7) + return 1; + if (__sync_and_and_fetch(&n, 5) != 5) + return 1; __sync_lock_release(&n); if (n != 0) return 1; @@ -51,6 +55,10 @@ if [ $nxt_found = no ]; then return 1; if (n != 5) return 1; + if (atomic_or_ulong_nv(&n, 2) != 7) + return 1; + if (atomic_and_ulong_nv(&n, 5) != 5) + return 1; return 0; }" . auto/feature |