diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr28712.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr28712.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr28712.c b/gcc/testsuite/gcc.dg/pr28712.c new file mode 100644 index 00000000000..0bbb45314cf --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr28712.c @@ -0,0 +1,16 @@ +/* PR c/28712 */ +/* { dg-do compile } */ +/* { dg-options "--combine" } */ +/* { 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)); |