[libc++] Add test coverage for our implementation of LWG4031 (#87508)

This was actually already implemented in the initial version of
std::expected, but this patch adds test coverage and makes it more
explicit that we intend to make these functions noexcept.
GitOrigin-RevId: e280407a4865542c4bb6cfa148edbe1ea67023d6
6 files changed