8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/strct-pack-2.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

14 lines
202 B
C

typedef struct
{
short a __attribute__ ((aligned (2),packed));
short *ap[2] __attribute__ ((aligned (2),packed));
} A;
main ()
{
short i, j = 1;
A a, *ap = &a;
ap->ap[j] = &i;
exit (0);
}