(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.old-deja/
g++.jason/
rfg10.C
// { dg-do assemble  }
// { dg-options "-pedantic-errors -std=c++98" }
// Bug: g++ doesn't notice the overflow in the enum values.

#include <limits.h>
 
enum COLOR
{
    red,
    green = ULONG_MAX,
    blue		     // { dg-error "too large for .unsigned long|overflow" }
};