blob: 3ba5d7bd849e68b25088d426f221d5fda1b0289e [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
3#ifdef PACKED
4#define P __attribute__((packed))
5#else
6#define P
7#endif
8
9struct P M_Packed {
10 unsigned long sorted : 1;
11 unsigned long from_array : 1;
12 unsigned long mixed_encoding : 1;
13 unsigned long encoding : 8;
14 unsigned long count : 21;
15
16};
17
18struct M_Packed sM_Packed;
19
20int testM_Packed (void) {
21 struct M_Packed x;
22 return (x.count != 0);
23}
24