* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-overflow.C
blob8406e4924ecc9c720ba8fecbba5d7db0b28d7952
1 // { dg-do compile { target c++11 } }
2 // { dg-options "-w -ftrack-macro-expansion=0" }
4 #include <limits.h>
5 extern constexpr int max_s = INT_MAX + 1;  // { dg-error "" }
6 extern constexpr unsigned max_u = UINT_MAX + 1u;  // OK
7 extern constexpr int abs_s = -INT_MIN;  // { dg-error "" } overflows on 2's complement machines