Merge to HEAD at tree-cleanup-merge-20041024 .
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / rfg10.C
blobf6d5af3a8b842839b1446459f8ed446711f7c2a1
1 // { dg-do assemble  }
2 // Bug: g++ doesn't notice the overflow in the enum values.
4 #include <limits.h>
5  
6 enum COLOR
8     red,
9     green = ULONG_MAX,
10     blue // { dg-error "overflow in enumeration" }