* g++.dg/abi/enum1.C: New test.

From-SVN: r52804
This commit is contained in:
Alexandre Oliva 2002-04-26 20:09:56 +00:00 committed by Alexandre Oliva
parent b13ab42c86
commit 48ba95387d
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-04-26 Alexandre Oliva <aoliva@redhat.com>
* g++.dg/abi/enum1.C: New test.
2002-04-26 Richard Henderson <rth@redhat.com>
* gcc.dg/c99-bool-1.c: Expect always true warning.

View File

@ -0,0 +1,16 @@
// { dg-do run }
#include <cstdlib>
enum foo
{
foo1 = 0,
foo2 = 0xffffffffffffffffULL,
foo3 = 0xf0fffffffffffffeULL
};
int main (int i)
{
if (sizeof (enum foo) != sizeof (unsigned long long))
std::abort ();
}