// { dg-do compile { target c++20 } } #include template concept has_and = requires (T& a) { a &= false; }; template concept has_or = requires (T& a) { a |= false; }; template concept has_xor = requires (T& a) { a ^= false; }; template concept has_fetch_add = requires (T& a) { a.fetch_add(true); }; template concept has_fetch_sub = requires (T& a) { a.fetch_sub(true); }; static_assert( not has_and> ); static_assert( not has_or> ); static_assert( not has_xor> ); static_assert( not has_fetch_add> ); static_assert( not has_fetch_sub> );