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 };
13