combo error
[libfirm] / ir / be / test / llvm / 2003-05-21-BitfieldHandling.c
1 struct test_empty {
2 } e;
3 int Esize = sizeof(e);
4
5 struct rtx_def {
6   unsigned short code;
7   long long :3;
8   int mode : 8;
9   long long :0;
10   long long x :31;
11   //long long y:31;
12 } N = {2, 7, 1 };
13 int Nsize = sizeof(N);  // Size = 8
14
15 struct test1 {
16   char x:1;
17   long long :0;
18 } F1;  int F1size = sizeof(F1);  // Size = 4
19
20 struct test2 {
21   long long x :4;
22 } F2;  int F2size = sizeof(F2);  // Size = 4
23
24 struct test3 {
25   char x:1;
26   long long :20;
27 } F3;  int F3size = sizeof(F3);  // Size = 3
28
29 struct test4 {
30   char x:1;
31   long long :21;
32   short Y : 14;
33 } F4; int F4size = sizeof(F4);  // Size = 6
34
35 struct test5 {
36   char x:1;
37   long long :17;
38   char Y : 1;
39 } F5; int F5size = sizeof(F5); // Size = 3
40
41 struct test6 {
42   char x:1;
43   long long :42;
44   int Y : 21;
45 } F6; int F6size = sizeof(F6);  // Size = 8
46
47 struct test {
48   char c;
49   char d : 3;
50   char e: 3;
51   int : 0;
52   char f;
53   char :0;
54   long long x : 4;
55 } M;   int Msize = sizeof(M);  // Size = 8
56
57 int main() {
58   return 0;
59 }