Sign in
gnu
/
gcc
/
b1143e51359be3b1151d892970f43ae67dee64d2
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
rfg10.C
blob: 8e7d2d1349d6dd28add3465bba55a7a781c1baa8 [
file
] [
log
] [
blame
]
// Bug: g++ doesn't notice the overflow in the enum values.
#include
<limits.h>
enum
COLOR
{
red
,
green
=
ULONG_MAX
,
blue
};
// ERROR - enum overflow