3 // { dg-options "-Wpacked -Wno-attributes" }
5 extern "C" void abort ();
8 virtual int foo() const { return 1; }
9 } __attribute__ ((packed));
14 } __attribute__ ((packed));
19 int s = sizeof(outer);
20 int o = (char *)&outer.inner - (char *)&outer;
21 if (s != sizeof (char) + sizeof (void*)
22 || o != sizeof (char))