diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 500d04a5162..42b45b0d609 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-04-26 Alexandre Oliva + + * g++.dg/abi/enum1.C: New test. + 2002-04-26 Richard Henderson * gcc.dg/c99-bool-1.c: Expect always true warning. diff --git a/gcc/testsuite/g++.dg/abi/enum1.C b/gcc/testsuite/g++.dg/abi/enum1.C new file mode 100644 index 00000000000..13138bd645b --- /dev/null +++ b/gcc/testsuite/g++.dg/abi/enum1.C @@ -0,0 +1,16 @@ +// { dg-do run } + +#include + +enum foo +{ + foo1 = 0, + foo2 = 0xffffffffffffffffULL, + foo3 = 0xf0fffffffffffffeULL +}; + +int main (int i) +{ + if (sizeof (enum foo) != sizeof (unsigned long long)) + std::abort (); +}