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