| 1 |
// { dg-options "-pedantic" } |
| 2 |
// { dg-do compile } |
| 3 |
|
| 4 |
#include <limits> |
| 5 |
|
| 6 |
// Compiling this with -pedantic was wrongly triggering this error: |
| 7 |
// libstdc++-v3/include/limits:1269:45: warning : use of C++11 long long integer constant [-Wlong-long] |
| 8 |
// min() _GLIBCXX_USE_NOEXCEPT { return -__LONG_LONG_MAX__ - 1; } |
| 9 |
// ^ |
| 10 |
// libstdc++-v3/include/limits:1272:44: warning : use of C++11 long long integer constant [-Wlong-long] |
| 11 |
// max() _GLIBCXX_USE_NOEXCEPT { return __LONG_LONG_MAX__; } |
| 12 |
// ^ |
| 13 |
// libstdc++-v3/include/limits:1342:44: warning : use of C++11 long long integer constant [-Wlong-long] |
| 14 |
// max() _GLIBCXX_USE_NOEXCEPT { return __LONG_LONG_MAX__ * 2ULL + 1 |
| 15 |
// ^ |
| 16 |
|
| 17 |
int |
| 18 |
main () |
| 19 |
{ |
| 20 |
return 0; |
| 21 |
} |