Eric Christopher | 97b02c5 | 2011-08-19 22:25:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null |
2 | |||||
3 | #pragma pack(4) | ||||
4 | |||||
5 | struct Bork { | ||||
6 | unsigned int f1 : 3; | ||||
7 | unsigned int f2 : 30; | ||||
8 | }; | ||||
9 | |||||
10 | int Foo(Bork *hdr) { | ||||
11 | hdr->f1 = 7; | ||||
12 | hdr->f2 = 927; | ||||
13 | } |