Skip to content

Commit 310400f

Browse files
committed
ci
1 parent 4105e50 commit 310400f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/test/libcxx/atomics/atomics.syn/wait.issue_85107.pass.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ int main(int, char**) {
4141

4242
// This would hang forever if the bug is present, but the test will fail in a bounded amount of
4343
// time due to the timeout above.
44+
#if _LIBCPP_AVAILABILITY_HAS_NEW_SYNC
4445
std::__atomic_wait_native<sizeof(std::__cxx_atomic_contention_t)>(&ct, &old_val);
46+
#else
47+
std::__libcpp_atomic_wait(&ct, old_val);
48+
#endif
4549

4650
done = true;
4751
timeout_thread.join();

0 commit comments

Comments
 (0)