summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/enum4.C
blob: 6a20ea9cbf4623c7654ad5fdcb0478bdc98783b1 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/37389
// { dg-do compile }
// { dg-options "-std=gnu++98" }

enum
{
  A = 9223372036854775807ULL * 2 + 1,
  B = B0,	// { dg-error "was not declared|overflow" }
  C = C0	// { dg-error "was not declared" }
};