1 /* { dg-do compile } */
17 struct packed_contains_unpacked
20 struct unpacked uuuu
; /* This should generate an error message. */
21 }; /* { dg-error "unpacked structure/union inside a packed struct" "XFAILed until patch for generic GCC structure layout code is accepted" { xfail rx-*-* } } */
23 union contains_unpacked
26 struct unpacked uuuu
; /* This should not. */
29 struct packed_contains_packed
32 struct packed ppppp
; /* This should not. */
37 struct unpacked_contains_packed
43 struct unpacked_contains_unpacked
50 int s1
= sizeof (struct unpacked
);
51 int s2
= sizeof (struct packed
);
52 int s3
= sizeof (struct packed_contains_unpacked
);
53 int s4
= sizeof (struct packed_contains_packed
);
54 int s5
= sizeof (struct unpacked_contains_packed
);
55 int s6
= sizeof (struct unpacked_contains_unpacked
);