2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp / limits.C
blob5824e01931280e11e4978e04b0e1bd40b932b743
1 // { dg-options "-pedantic" }
2 // { dg-do compile }
4 #include <limits>
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 //                                            ^
17 int
18 main ()
20     return 0;