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
[31/77] Use scalar_int_mode for move2add
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
rfg10.C
blob
75680748e0130e82358566358266da373e9dc0dd
1
// { dg-do assemble }
2
// { dg-options "-pedantic-errors -std=c++98" }
3
// Bug: g++ doesn't notice the overflow in the enum values.
4
5
#include <limits.h>
6
7
enum COLOR
8
{
9
red,
10
green = ULONG_MAX,
11
blue // { dg-error "too large for .unsigned long|overflow" }
12
};