2 /* { dg-do compile } */
3 /* { dg-options "-O0 -Wall" } */
4 /* { dg-skip-if "" { avr-*-* } } */
6 struct __attribute__ ((aligned (8))) S8
{ char a
[8]; };
7 struct __attribute__ ((packed
)) S1
{
9 }; /* { dg-warning "alignment 1 of 'struct S1' is less than 8" } */
11 struct __attribute__ ((packed
, aligned (8))) S2
{
15 struct __attribute__ ((packed
, aligned (8))) S3
{
17 struct S8 s8
; /* { dg-warning "'s8' offset 4 in 'struct S3' isn't aligned to 8" } */
20 struct __attribute__ ((packed
, aligned (8))) S4
{
26 struct __attribute__ ((packed
)) S5
{
30 union __attribute__ ((packed
)) U1
{
33 }; /* { dg-warning "alignment 1 of 'union U1' is less than 8" } */
35 union __attribute__ ((packed
, aligned (8))) U2
{