Add SMSC SCH3114 superio register descriptions to superiotool.
[coreboot.git] / util / romcc / tests / linux_test10.c
1 #include "linux_syscall.h"
2 #include "linux_console.h"
3
4 struct stuff {
5         signed int   a : 5;
6         signed int   b : 6;
7         signed int   c : 2;
8         unsigned int d : 3;
9 };
10
11 static void test(void)
12 {
13         struct stuff var;
14 #if 0
15         int a, b, c, d;
16
17         a = 1;
18         b = 2;
19         c = 3;
20         d = 7;
21
22         var.a = a;
23         var.b = b;
24         var.c = c;
25         var.d = d;
26
27         a = var.a;
28         b = var.b;
29         c = var.c;
30         d = var.d;
31
32         print_debug(" a: ");
33         print_debug_hex32(a);
34         print_debug(" b: ");
35         print_debug_hex32(b);
36         print_debug(" c: ");
37         print_debug_hex32(c);
38         print_debug(" d: ");
39         print_debug_hex32(d);
40 #else
41         var.a = 1;
42         var.b = 2;
43         var.c = 3;
44         var.d = 7;
45
46         print_debug(" a: ");
47         print_debug_hex32(var.a);
48         print_debug(" b: ");
49         print_debug_hex32(var.b);
50         print_debug(" c: ");
51         print_debug_hex32(var.c);
52         print_debug(" d: ");
53         print_debug_hex32(var.d);
54 #endif
55         print_debug("\n");
56         _exit(0);
57 }