blob: 46a89491ee216d123753a6b97d5cfd7950d903cf [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
4#ifdef PACKED
5#define P __attribute__((packed))
6#else
7#define P
8#endif
9
10struct P M_Packed {
11 unsigned int l_Packed;
12 unsigned short k_Packed : 6,
13 i_Packed : 15;
14 char c;
15
16};
17
18struct M_Packed sM_Packed;
19
20int testM_Packed (void) {
21 struct M_Packed x;
22 return (x.i_Packed != 0);
23}
24