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