blob: 6b77acf6261e6fb16e30e9b4c867719a0bd45fb5 [file]
// { dg-do compile { target c++20 } }
// { dg-require-gthreads "" }
// { dg-require-effective-target hosted }
#include <atomic>
void
test1(std::atomic<char*>& a, char* p)
{
a.wait(p);
}
void
test2(std::atomic<int>* a, int v)
{
std::atomic_wait(a, v);
std::atomic_notify_one(a);
std::atomic_notify_all(a);
}