Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
expr
/
overflow1.C
blob: b67b4e42eddcf8ec90de8c5639f839834a6d0d37 [
file
] [
log
] [
blame
]
#include
<limits.h>
enum
E
{
A
=
(
unsigned
char
)-
1
,
/* OK */
B
=
(
signed
char
)
UCHAR_MAX
,
/* implementation-defined */
C
=
INT_MAX
+
1
,
/* undefined (C)/ill-formed (C++) { dg-message "" } */
D
=
UINT_MAX
+
1
/* OK */
};