]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: testsuite: Add climits missing LL tests
authorXavier Bonaventura <xavibonaventura@gmail.com>
Wed, 5 Nov 2025 11:15:35 +0000 (12:15 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 13 Nov 2025 14:28:53 +0000 (14:28 +0000)
"long long" and "unsigned long long" min and max macros were added in
C++11, but they were not present in the climits test.

libstdc++-v3/ChangeLog:

* testsuite/18_support/headers/climits/values.cc: Check for
LLONG_MIN, LLONG_MAX, and ULLONG_MAX.

Signed-off-by: Xavier Bonaventura <xavibonaventura@gmail.com>
libstdc++-v3/testsuite/18_support/headers/climits/values.cc

index ac13f9f5c5651d128fa6255e31191e990905300c..bf383694b1b40124945ddcdaf6900934f8615c32 100644 (file)
@@ -49,4 +49,12 @@ namespace gnu
   unsigned short us = USHRT_MAX;
   unsigned long ul = ULONG_MAX;
 
+#if __cplusplus >= 201103L
+  // long long
+  long long ll1 = LLONG_MIN;
+  long long ll2 = LLONG_MAX;
+
+  // unsigned long long
+  unsigned long long ull1 = ULLONG_MAX;
+#endif
 }