* g++.dg/abi/enum1.C: New test.
From-SVN: r52804
This commit is contained in:
parent
b13ab42c86
commit
48ba95387d
@ -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.
|
||||
|
16
gcc/testsuite/g++.dg/abi/enum1.C
Normal file
16
gcc/testsuite/g++.dg/abi/enum1.C
Normal 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 ();
|
||||
}
|
Loading…
Reference in New Issue
Block a user