repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge to HEAD at tree-cleanup-merge-20041024 .
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
rfg10.C
blob
f6d5af3a8b842839b1446459f8ed446711f7c2a1
1
// { dg-do assemble }
2
// Bug: g++ doesn't notice the overflow in the enum values.
3
4
#include <limits.h>
5
6
enum COLOR
7
{
8
red,
9
green = ULONG_MAX,
10
blue // { dg-error "overflow in enumeration" }
11
};