8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/strct-pack-2.c

14 lines
202 B
C
Raw Normal View History

1997-08-19 03:34:40 -04:00
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);
}