1// { dg-do assemble  }
2// Bug: g++ doesn't notice the overflow in the enum values.
3
4#include <limits.h>
5
6enum COLOR
7{
8    red,
9    green = ULONG_MAX,
10    blue // { dg-error "overflow in enumeration" }
11};
12