OSDN Git Service

2010-09-17 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr28712.c
1 /* PR c/28712 */
2 /* { dg-do link } */
3 /* { dg-require-effective-target-lto } */
4 /* { dg-options "-flto -r -nostdlib" } */
5 /* { dg-additional-sources "pr28712.c pr28712.c" } */
6
7 struct A;
8
9 extern struct A *a;
10
11 struct A { } __attribute__((packed));
12
13 struct B __attribute__((aligned (sizeof (int))));
14
15 extern struct B *b;
16
17 struct B { int i; } __attribute__((packed));