FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / strct-pack-1.c
blob7b702f2cd682f3ba992eb7dd4fdd9529b33dbb5a
1 typedef struct
3 short s __attribute__ ((aligned(2), packed));
4 double d __attribute__ ((aligned(2), packed));
5 } TRIAL;
7 int
8 check (TRIAL *t)
10 if (t->s != 1 || t->d != 16.0)
11 return 1;
12 return 0;
15 main ()
17 TRIAL trial;
19 trial.s = 1;
20 trial.d = 16.0;
22 if (check (&trial) != 0)
23 abort ();
24 exit (0);