// { dg-options "-std=gnu++23" } // { dg-do compile { target c++23 } } // { dg-require-normal-namespace "" } #include #ifndef __cpp_lib_expected # error "Feature-test macro for expected missing in " #elif __cpp_lib_expected != 202211L # error "Feature-test macro for expected has wrong value in " #endif namespace std { template class unexpected; template class bad_expected_access; template<> class bad_expected_access; struct unexpect_t; extern inline const unexpect_t unexpect; template class expected; template requires is_void_v class expected; }