blob: 174dddf6ab650f982d3084399e38e6da666cb4ee [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3#ifdef PACKED
4#define P __attribute__((packed))
5#else
6#define P
7#endif
8
9struct P M_Packed {
10 unsigned int l_Packed;
11 unsigned short k_Packed : 6,
12 i_Packed : 15,
13 j_Packed : 11;
14
15};
16
17struct M_Packed sM_Packed;
18
19int testM_Packed (void) {
20 struct M_Packed x;
21 return (x.i_Packed != 0);
22}
23