]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix up 117406.cc test [PR117406]
authorJakub Jelinek <jakub@redhat.com>
Mon, 4 Nov 2024 11:29:01 +0000 (12:29 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 4 Nov 2024 11:29:01 +0000 (12:29 +0100)
commitafcbf4dd27c147eb7d8f84e1a41c021eddec777e
tree807b6b162499aec9fa5998258307d6edaa784e30
parent2e6d9e9f4a0db49376b1435bb6b9c5ac1badf13d
libstdc++: Fix up 117406.cc test [PR117406]

Christophe mentioned in bugzilla that the test FAILs on aarch64,
I'm not including <climits> and use INT_MAX.
Apparently during my testing I got it because the test preinclude
-include bits/stdc++.h
and that includes <climits>, dunno why that didn't happen on aarch64.
In any case, either I can add #include <climits>, or because the
test already has #include <limits> I've changed uses of INT_MAX
with std::numeric_limits<int>::max(), that should be the same thing.
But if you prefer
 #include <climits>
I can surely add that instead.

2024-11-04  Jakub Jelinek  <jakub@redhat.com>

PR libstdc++/117406
* testsuite/26_numerics/headers/cmath/117406.cc: Use
std::numeric_limits<int>::max() instead of INT_MAX.
libstdc++-v3/testsuite/26_numerics/headers/cmath/117406.cc