svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git] / gcc / testsuite / gcc.dg / pack-test-5.c
blobe95030c089ea5a4b977fd87a333f8d986878b5d5
1 /* PR c/11446: packed on a struct takes precedence over aligned on the type
2 of a field. */
3 /* { dg-do run } */
5 struct A {
6 double d;
7 } __attribute__ ((aligned));
9 struct B {
10 char c;
11 struct A a;
12 } __attribute__ ((packed));
14 int main ()
16 if (sizeof (struct B) != sizeof (char) + sizeof (struct A))
17 abort ();
18 return 0;