blob: 790ff2eab557bd2b5a46dd92d12691ab8445b9cc [file] [log] [blame]
// { dg-do compile { target c++20 } }
// { dg-require-effective-target gthreads { target { ! *-*-linux* } } }
// { dg-require-effective-target hosted }
#include <semaphore>
// PR 110854 Constructor of std::counting_semaphore is not constexpr
constinit std::binary_semaphore b(0);
constinit std::counting_semaphore<5> c(2);