[libc++] [test] Fix nodiscard_extensions.pass.cpp in _LIBCPP_DEBUG mode.
`std::clamp(2, 1, 3, std::greater<int>())` has UB because (1 > 3) is false. Swap the operands to fix the _LIBCPP_ASSERT failure in this test.
Loading
Please sign in to comment