aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/rfg10.C
blob: 8e7d2d1349d6dd28add3465bba55a7a781c1baa8 (plain)
1
2
3
4
5
6
7
8
9
// Bug: g++ doesn't notice the overflow in the enum values.

#include <limits.h>
 
enum COLOR
{
    red,
    green = ULONG_MAX, blue
};				// ERROR - enum overflow