2 // NOTE: This test assumes packed structure layout differs from unpacked
3 // structure layout. This isn't true, e.g., with the default
4 // arm-none-elf options.
5 // { dg-options "-mstructure-size-boundary=8" { target arm-*-* } }
13 A(const A& a) { i = a.i; }
18 A a __attribute__((packed)); // { dg-warning "attribute ignored" "" { target default_packed } }
22 A GetA() { return a; } // { dg-error "" "" { target { ! default_packed } } }