summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/overflow1.C
blob: b67b4e42eddcf8ec90de8c5639f839834a6d0d37 (plain)
1
2
3
4
5
6
7
8
#include <limits.h>

enum E {
  A = (unsigned char)-1,	/* OK */
  B = (signed char)UCHAR_MAX,	/* implementation-defined */
  C = INT_MAX+1,     /* undefined (C)/ill-formed (C++) { dg-message "" } */
  D = UINT_MAX+1     /* OK */
};