OSDN Git Service

* call.c (null_ptr_cst_p): Use maybe_constant_value.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-overflow.C
1 // { dg-options "-std=c++0x -w" }
2
3 #include <limits.h>
4 extern constexpr int max_s = INT_MAX + 1;  // { dg-error "" }
5 extern constexpr unsigned max_u = UINT_MAX + 1u;  // OK
6 extern constexpr int abs_s = -INT_MIN;  // { dg-error "" } overflows on 2's complement machines