OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / rfg10.C
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 };