Files
clang-p2996/lldb/test/API/lang/cpp/fpnan/main.cpp
Ilia Kuklin 9690b30ba9 [LLDB] Fix operators <= and >= returning a wrong result when comparing to a floating point NaN (#108060)
Implement operators `<=` and `>=` to explicitly check the comparison
results to be `cmpLessThan` or `cmpEqual` instead of negating the result
of `operators<`.

Fixes #85947
2024-09-18 17:50:09 +05:00

9 lines
186 B
C++

#include <limits>
int main() {
float fnan = std::numeric_limits<float>::quiet_NaN();
float fdenorm = std::numeric_limits<float>::denorm_min();
// Set break point at this line.
}