1 #include <stdio.h>
2 #include <string.h>
3 
4 int
main()5 main() {
6 	struct foo {
7 		unsigned	x:7;
8 		unsigned 	y:7;
9 	} f;
10 	struct foo2 {
11 		unsigned	x:7;
12 		unsigned 	y:7;
13 	} f2;
14 
15 	memset(&f, 0, sizeof f);
16 	f.x = 0x7f;
17 	printf("%d\n", f.x);
18 
19 	memset(&f, 0, sizeof f);
20 	f.y = 0x7f;
21 	printf("%d\n", f.y);
22 
23 	memset(&f2, 0, sizeof f2);
24 	f2.y = 0x7f;
25 	printf("%d\n", f2.y);
26 }
27 
28