Sign in
llvm
/
llvm-archive
/
1456578521548c1ea3e191fcd25bb39efd8203cd
/
.
/
llvm-gcc-4.2
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
rfg10.C
blob: f6d5af3a8b842839b1446459f8ed446711f7c2a1 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// Bug: g++ doesn't notice the overflow in the enum values.
#include
<limits.h>
enum
COLOR
{
red
,
green
=
ULONG_MAX
,
blue
// { dg-error "overflow in enumeration" }
};