PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pack-test-5.c
blob3a52a002bd5eb99251ab5c1c69fb06d5ea9a0c2d
1 /* PR c/11446: packed on a struct takes precedence over aligned on the type
2 of a field. */
3 /* { dg-do run } */
4 /* { dg-additional-options "-mno-ms-bitfields" { target *-*-mingw* } } */
6 extern void abort (void);
8 struct A {
9 double d;
10 } __attribute__ ((aligned));
12 struct B {
13 char c;
14 struct A a;
15 } __attribute__ ((packed));
17 int main ()
19 if (sizeof (struct B) != sizeof (char) + sizeof (struct A))
20 abort ();
21 return 0;