//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// XFAIL: !non-lockfree-atomics
// ... assertion fails line 34
// <atomic>
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// XFAIL: !non-lockfree-atomics
// ... assertion fails line 38
// <atomic>
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// XFAIL: !non-lockfree-atomics
// ... assertion fails line 34
// <atomic>
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// XFAIL: !non-lockfree-atomics
// ... assertion fails line 38
// <atomic>
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// XFAIL: !non-lockfree-atomics
// ... fails assertion line 31
// <atomic>
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// XFAIL: !non-lockfree-atomics
// ... assertion fails line 32
// <atomic>
void operator()() const {
TestEachIntegralType<TestFunctor>()();
TestFunctor<UserAtomicType>()();
-#ifndef __APPLE__
/*
- These aren't going to be lock-free,
- so some libatomic.a is necessary.
+ Note: These aren't going to be lock-free,
+ so some libatomic.a is necessary. To handle
+ the case where the support functions are
+ missing, all tests that use this file should add:
+ XFAIL: !non-lockfree-atomics
*/
TestFunctor<LargeUserAtomicType>()();
-#endif
/*
Enable these once we have P0528
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// XFAIL: !non-lockfree-atomics
// ... assertion fails line 36
// <atomic>
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// XFAIL: !is-lockfree-runtime-function
// <atomic>
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// XFAIL: !non-lockfree-atomics
// ... assertion fails line 35
// <atomic>
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// XFAIL: !non-lockfree-atomics
// ... assertion fails line 31
// <atomic>
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// XFAIL: !non-lockfree-atomics
// <atomic>
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// XFAIL: !non-lockfree-atomics
// <atomic>
//
// UNSUPPORTED: libcpp-has-no-threads
// XFAIL: c++03
+// XFAIL: !non-lockfree-atomics
// This test requires the dylib support introduced in D68480,
// which hasn't shipped yet.