1 C Atomic-RMW-ops-are-atomic-WRT-atomic_set
6 * Test that atomic_set() cannot break the atomicity of atomic RMWs.
7 * NOTE: This requires herd7 7.56 or later which supports "(void)expr".
11 atomic_t v = ATOMIC_INIT(1);
16 (void)atomic_add_unless(v, 1, 0);