FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / struct-ret-2.c
blob06a40a720999964bd7d7009e13d7bc8d8507e406
1 typedef struct
3 unsigned char a __attribute__ ((packed));
4 unsigned short b __attribute__ ((packed));
5 } three_byte_t;
7 unsigned char
8 f (void)
10 return 0xab;
13 unsigned short
14 g (void)
16 return 0x1234;
19 main ()
21 three_byte_t three_byte;
23 three_byte.a = f ();
24 three_byte.b = g ();
25 if (three_byte.a != 0xab || three_byte.b != 0x1234)
26 abort ();
27 exit (0);