(root)/
gcc-13.2.0/
libstdc++-v3/
testsuite/
29_atomics/
atomic/
wait_notify/
102994.cc
// { dg-options "-std=gnu++20" }
// { 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);
}