summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/rfg10.C
blob: f6d5af3a8b842839b1446459f8ed446711f7c2a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// Bug: g++ doesn't notice the overflow in the enum values.

#include <limits.h>
 
enum COLOR
{
    red,
    green = ULONG_MAX,
    blue // { dg-error "overflow in enumeration" }
};