summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/enum1.C
blob: 32e52fe0f5e4affa064c54ac225aad79320a918c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do run }

#include <cstdlib>

enum foo
{
  foo1   = 0,
  foo2   = 0xffffffffffffffffULL,
  foo3   = 0xf0fffffffffffffeULL
};

int main ()
{
  if (sizeof (enum foo) != sizeof (unsigned long long))
    std::abort ();
}