1 // Copyright (C) 2001 Free Software Foundation, Inc.
2 // Contributed by Ben Elliston <bje@redhat.com>
4 // PR 80: Packed enums use minimum required storage.
6 extern "C" void abort();
8 enum numbers { one, two, three } __attribute__ ((packed)) nums;
9 enum colours { red = 1000, green, blue } __attribute__ ((packed)) cols;
10 enum __attribute__ ((packed)) conditions { fine, rain, cloudy } forecast;
15 if (sizeof (nums) != 1)
18 if (sizeof (cols) != 2)
21 if (sizeof (forecast) != 1)