1 /* Test __atomic routines for existence and execution. */
6 /* Test that __atomic_test_and_set and __atomic_clear builtins execute. */
8 extern void abort(void);
15 __atomic_clear (&a, __ATOMIC_RELAXED);
19 b = __atomic_test_and_set (&a, __ATOMIC_SEQ_CST);
23 b = __atomic_test_and_set (&a, __ATOMIC_ACQ_REL);
27 __atomic_clear (&a, __ATOMIC_SEQ_CST);