diff options
| author | Xavier Bonaventura <xavibonaventura@gmail.com> | 2025-11-05 12:15:35 +0100 |
|---|---|---|
| committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-11-13 14:28:53 +0000 |
| commit | 228433365ced04568fc521e4ea7860c4321a08bd (patch) | |
| tree | 2cc6374b7941a1c9560e3c73b23b8f9a89ae2309 /libstdc++-v3 | |
| parent | 62174ec27b686bb9656c62a3b53d6cc08c9addb4 (diff) | |
libstdc++: testsuite: Add climits missing LL tests
"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>
Diffstat (limited to 'libstdc++-v3')
| -rw-r--r-- | libstdc++-v3/testsuite/18_support/headers/climits/values.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/18_support/headers/climits/values.cc b/libstdc++-v3/testsuite/18_support/headers/climits/values.cc index ac13f9f5c56..bf383694b1b 100644 --- a/libstdc++-v3/testsuite/18_support/headers/climits/values.cc +++ b/libstdc++-v3/testsuite/18_support/headers/climits/values.cc @@ -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 } |
