2 // A packed enum uses the minimal underlying type.
4 // Copyright (C) 2004 Free Software Foundation, Inc.
5 // Contributed by Matt Austern <austern@apple.com>
9 enum XXX { xyzzy = 3 } __attribute__((packed));
13 int enumsize = sizeof(xyzzy);
14 return (enumsize == 1) ? 0 : 1;