/* PR c/28712 */ /* { dg-do link } */ /* { dg-require-effective-target lto } */ /* { dg-options "-flto -r -nostdlib" } */ /* { dg-additional-sources "pr28712.c pr28712.c" } */ struct A; extern struct A *a; struct A { } __attribute__((packed)); struct B __attribute__((aligned (sizeof (int)))); extern struct B *b; struct B { int i; } __attribute__((packed));