OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/49272
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
rfg10.C
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
};