summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr28712.c
blob: 0bbb45314cf1e611a0b1a5651d2db2c1a57ef7b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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));