Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / pack-test-5.c
blob7645043dd84f1ea62b9b5cd4005c9a0bec911ae4
1 /* PR c/11446: packed on a struct takes precedence over aligned on the type
2 of a field. */
3 /* { dg-do run } */
5 extern void abort (void);
7 struct A {
8 double d;
9 } __attribute__ ((aligned));
11 struct B {
12 char c;
13 struct A a;
14 } __attribute__ ((packed));
16 int main ()
18 if (sizeof (struct B) != sizeof (char) + sizeof (struct A))
19 abort ();
20 return 0;