[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / packed7.C
blobe2f74e026328a75afc1141115307e4e2e46012f2
1 // PR c++/14124
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>
7 // { dg-do run }
9 enum XXX { xyzzy = 3 } __attribute__((packed));
11 int main()
13   int enumsize = sizeof(xyzzy);
14   return (enumsize == 1) ? 0 : 1;